(null) is a special data type. Basically, we use it for an object. if we don't have any object in a variable you can define null as a value on that object and get output null in the console.
(undefined). you can get undefined in the console when you don't have any value. That means a variable without value always get output (undefined)
The deference between double equal and triple equal is , double equal can not check the data type and triple equal can check data type.
some time you see true and false when you write condition in…
DOM(document object model). All the interactivity in your website is handle by dom. for example you click a button on a website and something happens. that happens by dom
browser is not understand jsx, its understand the plane HTML, js. react ckompile the jsx then browser understand. we write HTML code in react.js, but in react.js those codes are not HTML code those are called jsx . and this is the power of…
Array is a packet of object
using forEach you can get all the value from the array
what is slice? for example, you have an array, and inside the array have five animals' names (lion, monkey, dog, cat, mouse) and you don't like the dog inside the array. what you can do? yes, you can use slice. by using the slice method you can get the list of the value from the array excepted the dog.
var age =“20 years”;
UI : 20;
toFixed is a method it have a internal power to fixed a number, for example user give you this(25.124586) . but you want only two number after the point.
const price= 12.666666
now you can get ; 12.66
<h1 id=‘hello’></h1> This is a HTML tag
var hay = document.getEllementbyId(‘hello’);
ceil always gives you the up value. for example, you have a number (2.45)if you use ceil at the number you can get (3).
the floor always gives you the down value like, you have…