undefined

Parent Previous Next



You cannot declare a constant with the same name as a function or variable in the same scope. For example:

view plainprint?

  1. // THIS WILL CAUSE AN ERROR  
  1. function f() {};  
  1. const f = 5;  
  1.   
  1. // THIS WILL CAUSE AN ERROR ALSO  
  1. function f() {  
  1.   const g = 5;  
  1.   var g;  
  1.   
  1.   //statements  
  1. }  

Literals

Created with the Personal Edition of HelpNDoc: Full featured Documentation generator