``` const weight = 78.5; const grades = 98; const remainder = 80 % 4; console.log(weight); // prints 78.5 console.log(grades); // prints 98 console.log(remainder); // 0 console.log(typeof weight); // prints number console.log(typeof grades); // prints number console.log(typeof remainder); // prints number ```
Infinity, -Infinity and NaN
Numbers can also be +Infinity, -Infinity or NaN (Not a Number) value based on the numerical calculations.
``` const value = 65 / 0; const data = -65 / 0; const result = ‘hello’ / 10; console.log(value); // prints Infinity console.log(data); // prints -Infinity console.log(result); // prints NaN ```
Kick-Start Your Web Developer Career
We offer a wide variety of programs and courses built on adaptive curriculum and led by leading industry experts.
- Work on projects in a collaborative setting
- Take advantage of our flexible plans and scholarships
- Get access to VIP events and workshops
Recommended Courses for Web Developer
The Web Development bootcamp is an intensive, hands-on learning experience, designed to introduce the skills and concepts required to build modern web applications.
The part-time Web Development course is designed to provide a crash course in web development, with introductions to HTML, CSS, and the Bootstrap framework.