JavaScript Variables and Types

Numbers

All the numbers like ints, floats, double are under the data type number in java script.
Math functions are function that can be performed by java script
For example: Math.round(number) or Math.random

Strings – Methods

Strings are an array of character, basically a word or a sentence. Many methods can be performed with Strings. Here are a few:
– myString.toUpperCase
– myString.toLowerCase

Booleans

  • True
  • False
  • Can be used to compare Strings and Numbers

References

Leave a comment

Design a site like this with WordPress.com
Get started