
Introduction
Environment Setup
What is JavaScript vs ES-5 or ES-6
JavaScript Syntax
JavaScript Comments
JavaScript Use Strict
JavaScript Variables
JavaScript Reserved Words
JavaScript Scope
JavaScript Data Types
JavaScript Function
Function overloading not possible in JavaScript
JavaScript Arrow Function
JavaScript Numbers
JavaScript Number Methods
JavaScript String
JavaScript String Methods
JavaScript if else and else if
JavaScript Comparison and Logical Operators
JavaScript Arrays
JavaScript Sorting Arrays
JavaScript Array Iteration Methods
JavaScript for loop
JavaScript Let keyword
JavaScript Const
JavaScript Objects
JavaScript Object Methods
JavaScript ES5 Object Methods
JavaScript Object Accessors
JavaScript Math Object
JavaScript Random
JavaScript this Keyword
JavaScript Date Objects and Date Formats
JavaScript Classes
JavaScript While Loop
JavaScript Break and Continue
JavaScript Switch Statement
JavaScript JSON
Error handling in JavaScript
JavaScript math object is pre define object we just use this function because our coding style will be simplified. If we use the function, we easily find the round figure of the digit or other facilities by the pre define function. Now given bellow some example code and explain the code:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript">
console.log(Math.PI);
console.log(Math.round(4.4));
console.log(Math.pow(8, 2));
console.log(Math.ceil(4.4));
console.log(Math.min(0, 150, 30, 20, -8, -200));
console.log(Math.max(0, 150, 30, 20, -8, -200));
</script>
</body>
</html>
In this code we see the many type of function of the Math object. This function responsible to our code are more easily write and easily undatable. If we use the “Math.PI” function we get the PI value.