If you declare a variable but can’t set value. it show you undefine that means undefine is where a variable can’t set a value.
basically null is a variable value. you can define any type of value in a variable.
let test1 = you can define string;
let test2 = you can define number;
let test3 = you can define object;
In the same way,
let test4 = null;
null means nothings. it’s falsey value.
Function Scope vs Block Scope
Function scope is created when you declare variable inside a function. The variable is visible only within the function…
Library not Framework
Vue or Angular are frameworks where decisions are made for you. But React is just a library and you need to make all decisions by yourself. It focuses on helping you to build user interfaces using components.
Cross Browser is a testing process there a website or a web apps is tested in different browser,
different website, different device and find out the bugs.
Somehow every programmer makes some mistake when he/she makes instruction then occurs an error.
The system is try, catch, throw and finally.
The try statement give you test a block of code for errors.
The catch statement give you handle the error.
The throw statement give you create custom errors.
The finally statement give you execute code, after…
It is written inside single qoutes and double qoutes.
let str = ‘Hello World’;
let str2 = “What is your name?”;
The indexOf() method returns position of specified string.
let str =…