Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to declare variables javascript

//variables are a way to easily store data in javascript
//variables are declared by the var keyword, example...
var x = 10;
//or
var dog_name = "daisy";
//which can also be written as 
var dog_name = 'daisy';
//same thing with single quotes and double quotes
Source by fahadahmad.substack.com #
 
PREVIOUS NEXT
Tagged: #declare #variables #javascript
ADD COMMENT
Topic
Name
4+9 =