Show Menu
Cheatography

Javascript 2024 Cheat Sheet (DRAFT) by

My Collection of Method for Quick reference

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Object Creation

There are several ways to create objects in JavaSc­ript. Here are some common methods:

1. Object Literal:
- You can create an object using the literal notation with curly braces
{}
.

object Literal

   const person = {
      name: 'John',
      age: 30,
      occupation: 'Developer'
    };