Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by tylermcginnis.com #
 
PREVIOUS NEXT
Tagged: #js #variables
ADD COMMENT
Topic
Name
1+7 =