JavaScript Built-in Objects & Methods
This section dives into the tools and utilities that come pre-packaged with JavaScript known as built-in objects and methods which allow you to manipulate and inspect your data effortlessly. We will explore how even simple primitive values (like strings or numbers) gain access to powerful methods via temporary “wrapper objects,” and master essential global utilities like the Math and Date objects to handle everything from complex calculations and randomness to formatting and managing time. Mastering these built-in features is crucial for working with data efficiently.
Primitives & Methods: While primitives (like a string) aren’t objects, JavaScript temporarily wraps them in a “wrapper object” when you try to access a method or property (e.g., 'hello'.toUpperCase()).
String Properties & Methods: How to manipulate and inspect strings, such as .length (property), .toUpperCase(), .toLowerCase(), .trim(), .includes(), .slice(), .split(), .replace(), .padStart() and .padEnd().
Number Methods & Global Functions: Methods for formatting numbers and functions for converting strings to numbers with .toFixed(), .toString(). Also, the global functions parseInt(), parseFloat(), and isNaN().
The Math Object: A global, built-in object that provides common mathematical functions and constants with Math.random() (and how to get a random number in a range), Math.floor(), Math.ceil(), Math.round(), Math.max(), Math.min().
The Date Object: How to create and work with dates and times in JavaScript. (This fits much better here than under “Functions”). Topics: new Date(), .getFullYear(), .getMonth(), .getDate(), .toString().




