Laurence Svekis

Web technology Instructor

61

1

Working with Variables

var x = '1' + 1; 

var y = 'string ' + 'another';
var z = 'string ' + 1;

var five = 1 + 4;
var six = 9 / 3;
var eight = five + six;
console.log(eight);

var str = "What is your name?"; //string $ _ 
var boo = true; // boolean true or false
var response = 'question was ' + str + ' : ' + prompt(str);

console.log(x);
console.log(y);
console.log(z);

console.dir(window);
console.dir(document);

Comments

Please sign in or sign up to comment.