javascript variable
var user_name = prompt("Please enter your name:", "Type here");
alert("Hello " + user_name);
javascript variable
var user_name = prompt("Please enter your name:", "Type here");
alert("Hello " + user_name);
var = {} js
//An array is a type of object intended to be only assigned numeric keys
var tmp = []; // or: var tmp = {}
tmp.one = 1;
JSON.stringify(tmp);
// array:
'[]'
// object:
'{"one":1}'
js variables
// Can be a number
var myVar = 21
//Can be a string
var myVar2 = "string"
// Used in a function
function printVar(parvar) {
print(parvar);
}
printVar(myVar2);
// prints "string"
printVar(myVar);
// prints 21
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us