Answers for "constants in js"

1

how to dec are a constant in javascript

const myBirthday = '18.04.1982';
Posted by: Guest on September-16-2020
6

what is const in javascript

const age; // errror as const cannot be kept un-initialized;
const age = 20 ; 
const age = 21 , // error as once declared const variable cann't be
// re-declared in same scope or different scope.
Posted by: Guest on April-25-2020
-2

constants in js

static methodName() { ... }
static propertyName [= value];
Posted by: Guest on October-13-2020
-2

how to create a constant in javascript

const example1 = "hello this is string variable" ; //this is string constant
const example2 = 12345 ; //this is numeric constant
const example3 = true ; //boolean constant
Posted by: Guest on December-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language