Every programming language is designed around storing information for your application or website. When storing this information, there is always a need to specify what kind of information is being stored. It could be numerical information or textual data. Sometimes it could be a logical state and sometimes it is a collection or list of information. Hence, every programming language ships with built-in data types also known as primitive data types.
Dynamic and Weakly Typed Language
``` let response = ‘Success’; console.log(response); // prints ‘Success’ response = true; console.log(response); // prints true ```
typeof operator that helps to understand the data type being stored in a certain variable at any given point in time.
``` const grade = 100; console.log(typeof grade); // prints number const greeting = ‘Merry Christmas’; console.log(typeof greeting); // prints string const hasGraduated = true; console.log(typeof hasGraduated); // prints boolean ```
length property for the same.
``` const greeting = ‘Merry Christmas’; console.log(greeting.length); // prints 15; ```
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.