JavaScript Control Statements & LoopsFoundation Which is Imp for writing Logical Code3 min read·dipeshjoshi4.hashnode.devJul 18, 2023
Variables & Primitives vs Non-primitivePRIMITIVE VS NON -PRIMITIVE PRIMITIVES ARE COPIED BY THEIR VALUE REFERENCE(non-primitive) ARE COPIED BY THEIR ADRESS/REFERENCES primitive value types => string , number, boolean, undefined, null non-primitive(reference type) types => array ,objec...2 min read·dipeshjoshi4.hashnode.devMar 21, 2023
JavaScript Math ObjectMath Object 1. pi value property it gives constant famous value as per name console.log(Math.PI); //OUTPUT = 3.14159265358... 2. Math. pow() Math.pow(x, y) returns the value of x to the power of y console.log(Math.pow(2, 3)); //2*2*2 ...2 min read·dipeshjoshi4.hashnode.devMar 2, 2023