29 lines
642 B
29 lines
642 B
// Create a variable.js file and declare variables and assign string, boolean, undefined and null data types
|
|
|
|
let newStudentName = "Mujeeb ur Rahman";
|
|
let learning = true;
|
|
let newAge = 25;
|
|
let score;
|
|
let grad = null;
|
|
|
|
let firstVariable;
|
|
let secondVariable;
|
|
let thirdVariable;
|
|
let fourthVariable;
|
|
|
|
let fifthVariable = "fifthVariable";
|
|
let sixthVariable = 6;
|
|
let seventhVariable = true;
|
|
let eighthVariable = 8.0;
|
|
|
|
let myFirstName = "Mujeeb ur",
|
|
myLastName = "Rahman",
|
|
materialStatus = "single",
|
|
myCountry = "Pakistan",
|
|
myAge = 30;
|
|
|
|
let yourAge = 25;
|
|
|
|
console.log(`I am ${myAge} years old`);
|
|
console.log(`You are ${yourAge} years old`);
|