Answers for "define value in js"

3

how to write a variable in js

//choose the best for your solution
var myVariable = 22; //this can be a string or number. var is globally defined

let myVariable = 22; //this can be a string or number. let is block scoped

const myVariable = 22; //this can be a string or number. const is block scoped and
Posted by: Guest on June-03-2020
0

define value in js

var var1 = 1; //int
var var1 = "str"; //string
var var1 = 'a'; //char
Posted by: Guest on November-25-2020
-1

vars javascript

var /*var*/ = /*What it does*/
Posted by: Guest on September-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language