In ES6 JavaScript has 6 types of Data:

Number, String, Boolean, Function, Object, Symbol

Number:

Similarly we can parse floating point numbers using the built-in parseFloat() function.

A special value is called NaN is returned if the string is non-numerical. We can test NaN using the built-in Number.isNaN() function.

JavaScript also has the special values Infinity. They are 0 and 1.

Strings:

To find the length of strings, length property is used.

slice() = This method extracts a section of a string and returns it as a new string. Example:

split() = This method divides a string into an ordered list of substrings, puts these substrings into an array, and returns the array. Example:

Boolean:

False: False, 0, empty strings (“”), NaN, null, and undefined all become false

True: All other values become true

Function:

Object:

Symbol:

— — — — — — — — — — — — — — — — — — — — — — — — — —

Math:

Math.min() = This function returns the lowest number from the input number. Example:

Math.random() = This function returns the random number from the input number. Example:

Array

find() = Return the first element in the provided array that satisfies the provided testing function. Example:

forEach() = It provide all array element once. Example: