How to call a function in Javascript -


i new programming-and using codeademy pardon me if question bit of obvious one. want able call function. have copy , pasted code academy stuff below , want know have "call greeting function". if explain why, great.

below greeting function! // see line 7 // can join strings using plus sign (+) // see hint more details how works.  var greeting = function (name) { console.log("great see you," + " " + name); };  // on line 11, call greeting function!` 

to call greeting function need do:

greeting("my name"); // call function , produce "great see you, name"); 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -