JS function calls related statement

// function declaration method a 
function F (A, B) {
     return A + B; 
} 
// function calls 
the console.log (F (. 1,. 4)); // . 5 

// function declaration second method 
var NUM = function ( A, B) {
     return A + B; 
} 
the console.log (NUM ( . 1,. 3)); // . 4 

// hide from function calls 
( function () { 
    Alert ( 'Hello World' ); 
}) ();

Guess you like

Origin www.cnblogs.com/GetcharZp/p/12066576.html