1.JavaScript Full Course - Part 1 -Variables , Constants , Datatypes and Objects in Javascript- 2019

Опубликовано: 28 Май 2026
на канале: Learning With Faraz
920
43

In this video you would learn
1.What a variable is
2.What are constants
3.Datatypes and Literals in Javascript


Here is Your exercise problem


// Evaluate what answers you would get if you ran this in the
// JavaScript Console. Answer the questions then

// check them by copying them and running it in the console yourself

// line by line



// add variable "firstName" and "lastName"
// so that they equal your name


// create a variable that holds the answer
// of "firstName" + " " + "lastName"


// Evaluate this question. What is a + b?
var a = 34;
var b = 21;
a = 2;
a + b
// what is the answer here?


// What is c equal to?
var c;
// predict the output :-
var x=10;
const x=11;
x;
// Predict the output
const y=12;
const y=10;

//predict the output
var x='a';
var y= 12;
var z=x+y;
#Javascript #Datatypes #Objects #Constants