javascript define constant code example
Example 1: how to dec are a constant in javascript
const myBirthday = '18.04.1982';
Example 2: constants in js
static methodName() { ... }
static propertyName [= value];
Example 3: const {} = object in javascript
let array = [2,3];
[a,b] = array;
console.log(a);
console.log(b);
let object = {name:"someone",weight:"500pounds"};
let {name,weight} = object;
console.log(name);
console.log(weight);
Example 4: how to create a constant in javascript
const example1 = "hello this is string variable" ;
const example2 = 12345 ;
const example3 = true ;