JavaScript Data Types

Today I’m learn about basic of JavaScript with my teacher. And this post is about all data types of JavaScript.

This is string variable in JavaScript.

  • const is use for the varible that we can not change its value.
  • The word I’m circle is just a variable name.

This is how to write numbers int and float in JavaScript.

And this is how the Boolean look like. A boolean value is one that can either be true or false.

And for this one is null and undefined in JavaScript. Null is an assigned value. It means nothing. Undefined means a variable has been declared but not defined yet.

This one is Symbol in JavaScript. Symbol is to add unique property keys to an object. And for the code below it will bring false.

  • console.log is output message to console.

Tags:

No Responses

Leave a Reply

Your email address will not be published. Required fields are marked *