W3Newbie
  • HTML Tutorial
  • CSS Tutorial
  • Web Dev
    • VS Code Tutorial
    • Command Line Tutorial
    • Git Tutorial
    • Github Tutorial
    • Sass Tutorial
  • Courses
  • Resources
  • Tutorials
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu

JavaScript Built-in Objects & Methods

Home » JavaScript Tutorial » 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().

< Previous
Next Lesson >

  • JavaScript Tutorial
  • JavaScript Introduction
    • JavaScript’s History
    • Getting Started with JavaScript
    • JavaScript’s Syntax & Structure
    • JavaScript Variables
    • JavaScript Data Types
    • JavaScript Escape Sequences
    • JavaScript Operators
    • JavaScript Type Coercion
    • JavaScript Expressions & Statements
  • JavaScript Built-in Objects & Methods
    • JavaScript Primitives & Methods
    • JavaScript String Properties & Methods
    • JavaScript Number Methods & Global Functions
    • JavaScript Math Object
    • JavaScript Date Object
  • JavaScript Control Flow and Collections
    • JavaScript Conditional Logic
    • JavaScript Try/Catch Synchronous Error Handling
    • JavaScript Arrays
    • JavaScript Array Methods
    • JavaScript Loops
    • JavaScript Objects
    • JavaScript Objects vs. JSON
    • JavaScript Primitive vs. Reference Values

The Newbie Template Bundle

The 12 Website Bundle Pack

Subscribe on YouTube

Web Development Courses

The HTML Email Mastery Course - Build Responsive HTML Email Templates.

Latest Tutorial Posts

  • The HTML Email Mastery Course - Build Responsive HTML Email Templates.w3newbie.com
    HTML Email Mastery Course CouponOctober 12, 2020 - 8:10 pm
  • Create A 5 Page Website With PHP Includes, HTML5, CSS3 & Bootstrap 4w3newbie.com
    Create A 5 Page Website With PHP Includes, HTML5, CSS3 & Bootstrap 4April 22, 2019 - 1:48 pm
© w3newbie.com, 2026. Terms of Use. Privacy Policy.
Scroll to top Scroll to top Scroll to top