Computer >> Computer tutorials >  >> Programming >> Javascript

What are JavaScript Native Objects?


JavaScript has several built-in or native objects. These objects are accessible anywhere in your program and will work the same way in any browser running in any operating system.

Here is the list of JavaScript Native Objects −

  • JavaScript Number Object − The Number object represents numerical date, either integers or floating-point numbers.
  • JavaScript Boolean Object − The Boolean object represents two values, either "true" or "false".
  • JavaScript String Object − The String object lets you work with a series of characters; it wraps Javascript's string primitive data type with a number of helper methods.
  • JavaScript Array Object − The Array object lets you store multiple values in a single variable. It stores a fixed-size sequential collection of elements of the same type
  • JavaScript Date Object − The Date object is a datatype built into the JavaScript language. Date objects are created with the new Date( ).
  • JavaScript Math Object − The math object provides you properties and methods for mathematical constants and functions.
  • JavaScript RegExp Object − The JavaScript RegExp class represents regular expressions, and both String and RegExp define methods that use regular expressions to perform powerful pattern-matching and search-and-replace functions on a text.