var java script code example
Example 1: var javascript
var is a keyword to define the varible in js but as of es-6 we, use let and const keywords for the same
Example 2: js variables
// let & var are both editable variables:
var cow = 'moo';
let pig = 'oink';
cow = 10;
pig = 10;
// const is a permanent variable; you cannot change it.
const uncuttableGrass = '\/\/';
uncuttableGrass = '___';
// above throws an error