Categories > Original > Essay > Coding

more useless stuff

by iluvdacomalfoy 0 reviews

stuff

Category: Essay - Rating: G - Genres: Drama - Published: 2014-11-29 - 51 words

0Unrated
// This is what a function looks like:

var divideByThree = function (number) {
var val = number / 3;
console.log(val);
};

// On line 12, we call the function by name
// Here, it is called 'dividebythree'
// We tell the computer what the number input is (i.e. 6)
// The computer then runs the code inside the function!
divideByThree(9);
Sign up to rate and review this story