loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
console.log(helloDeclaration()); 
function helloDeclaration() {                                  
   return "Hello from a function declaration";  
}                         
console.log(helloDeclaration());


console.log(helloExpression());
var helloExpression = function() {                  
  return "Hello from a function expression";
}
console.log(helloExpression());


Native Browser JavaScript