Javascript

Error Handling in JavaScript

Error Handling in JavaScript

Ashish Lahoti

In this tutorial, we’ll learn error handling using try, catch, finally and throw statements. We’ll also learn about built-in JavaScript error objects (Error, SyntaxError, ReferenceError, etc.) and how to define custom errors.

Math Constants and Functions in JavaScript

Math Constants and Functions in JavaScript

Ashish Lahoti

In this tutorial, we’ll learn about Math Object in JavaScript, which allows us to use mathematical constants such as π, e, √2 and perform mathematical operations on numbers such as pow(), sqrt(), max(), min(), random(), abs(), ceil(), floor(), round(), and truc().