// string data
type:
// [Link]("This is my new car");
// [Link]("hello","world","this is my new porject");
// number data
type:
// [Link](100);
// [Link](45);
//undefined operator
// let unassiged;
// [Link](unassiged);
// Null operator
// let empty = null;
// [Link](empty);
// To check type
of any data method : "typeof";
// [Link](typeof true);
// [Link](typeof "fahad");
// [Link](typeof 45);
// boolean data
type;
// [Link](true);
// [Link](false);
// [Link](4==4);
// symbol data
type;
// let greeting1 = Symbol(`hello`);
// let greeting2 = Symbol(`hello`);
// [Link](greeting1 == greeting2);
// concatention
method (no space just the code run)
// [Link]('hello'+'world'+'this is my new car');
// variable:
(variable declaration: let,const,var)
//let variable
// let box1 = 'fahad';
// let container = 'ball';
// let myvariable = 100;
// [Link](typeof box1);
// [Link](typeof myvariable);
// [Link](typeof container);
// const variable
// const box1 = 'fahad';
// const container = 'ball';
// const myvariable = 45;
// [Link](box1);
// [Link](container);
// [Link](myvariable);
// var variable
// var md = 'fahad';
// var container = 'car';
// var myvariable = 48;
// [Link](md);
// [Link](container);
// [Link](myvariable);
// Different
let,const and var
// var; can be redeclared & updated. it is a
global scope variable.
// var mybox = 'apple';//declaration
// mybox = 'orange';// updatation
// [Link](mybox);
// var mybox = 'ball';// again redeclaration(they not show error)
// [Link](mybox);
// let; can not be redeclared but [Link] is a
block scope variable.
// let yourBox = 'flower';//declared
// yourBox = 'apple';
// // let yourBox = 'banana';// not again redeclared (they show error)
// [Link](yourBox);
// const; And can neither be redeclared nor updated. it is a
block scope variable.
// const laptop = 'flies';//declared
// laptop = 'mobile';// not update(they show error)
// const laptop = 'ali';// not again redeclared(they show error)
// [Link](laptop);
// global scope and block scope
// global scope:mean example function ka andar wala code run hoi gay or bayer wala
bhi code run hoi gay e.g var
// let x=10;
// if(x==10){
// [Link](true);
// var yourBox = 'apple';
// [Link](yourBox);
// }
// [Link](yourBox);
// block scope:mean example function ka andar wala hei code run hoi gay bayer wala
code run nahi hoi gay e.g let,const
// let x=10;
// if(x==10){
// [Link](true);
// let yourBox = 'apple';
// [Link](yourBox);
// }
// variable type annotations
// let box1:string = 'fahad';
// const container:string = 'ball';
// var myvariable:number = 45;
// let isthisright:boolean = true;
// [Link](box1);
// [Link](container);
// [Link](myvariable);
// variable naming conventions:
// let myBoxName = 'flowers'; // camel case
// let my_box_one_in = 'flowers'; // snakes case
// let MyBoxOneInTheRoom = 'flowers'; // pascal case