Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
|
|
@ -1,5 +1,12 @@
|
|||
// a function definition
|
||||
var multiply = function(a,b) { a*b }
|
||||
// a function definition can be written either as
|
||||
var multiply = function(a, b) {
|
||||
a * b
|
||||
}
|
||||
|
||||
// or
|
||||
function multiply(a, b) {
|
||||
a * b
|
||||
}
|
||||
|
||||
// and calling a function
|
||||
$print( multiply(2,3) + "\n");
|
||||
$print(multiply(2,3));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue