Answers for "js declare variable"

SQL
1

js var

var a;
console.log(a);                // scrive in console "undefined" o "" a seconda del browser usato.
console.log('still going...'); // scrive in console "still going...".
Posted by: Guest on January-04-2021
0

js var

var x = y, y = 'A';
console.log(x + y); // non definito
Posted by: Guest on January-04-2021
0

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
Posted by: Guest on July-22-2020
0

js variables

// 3 ways to create

var mrVariable = 'x'; // You can set it to to a string ( '' ) or no. ( 0 ). It 
// is globally defined

let myVariaible2 = 'y'; // You can set it to string or no. let is block scoped

const myVariable = 'z'; // It is block scoped, can be a string or no. and can't 
//be reassigned
Posted by: Guest on August-26-2021
0

js var

function x() {
  y = 1;   // Genera un ReferenceError in strict mode
  var z = 2;
}

x();

console.log(y); // scrive "1" in console
console.log(z); // Genera un ReferenceError: z non è definita fuori dalla funzione x
Posted by: Guest on January-04-2021
0

js var

var nomevariabile1 [= valore1] [, nomevariabile2 [= valore2] ... [, nomevariabileN [= valoreN]]];
Posted by: Guest on January-04-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language