Rekenen

by Dennis Betman

JavaScript

// This is what a function looks like:

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

// On line 11, 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 uses the code inside the function!
divideByThree(9);