The Object class represents one of JavaScript's data types. It's used to store keyed collections as well as more complex entities
2. How can you Create a JavaScript Object?
With JavaScript, you can define and create your objects.
There are different ways to create new objects:
1. Create a single object, using an object literal.
2. Create a single object, with the keyword new.
Using an Object Literal:
This is the easiest way to create a JavaScript Object.
Using an object literal, you both define and create an object in one statement.
An object literal is a list of name: value pairs (like name: "mujeeb") inside curly braces {}.
Example:
Using new keyword.
Example:
Using Object.create().
Example:
Accessing Properties of an Object.
The syntax for accessing the property of an object is:
Object Methods: 1. Keys. 2. values. 3. delete. 4. freeze. 1. keys:
The Object.keys() method produces an array of enumerable property names for a given object, iterated in the same way as a normal loop.
Example:
2. values:
The Object.values() method returns an array of enumerable property values for a given object in the same order as a for...in loop.
Example:
3. delete:
This method will remove the whole property from an array.
Example:
4. freeze:
An object is frozen using the Object.freeze() method. An object that has been frozen cannot be changed; Object.freeze() returns the same object that was passed in as an argument.
Example:
• • •
Missing some Tweet in this thread? You can try to
force a refresh
I don’t get why people aren’t using AI,It boosts productivity like nothing else.
Here are 8 AI tools to leverage AI and increase productivity
Bookmark now 🔖
1. AiSOAP - #1 AI Medical Scribe with AI SOAP Notes
Try it free today! → 🔗
Trust me, it’s a game-changer. 💥
→ AiSOAP records, transcribes, and generates customized SOAP notes, saving you 95% of your charting time. Sounds too good to be true? It’s not. 🙌Try.aisoap.com
Access ChatGPT-o1, DeepSeek-R1, Claude, Gemini, Llama, Grok, Midjourney, Ideogram, Flux Perplexity, Runway and Luma all in one place. Enjoy advanced AI models, image/video creation, and web search.
Here's how ↓
Meet GlobalGPT @GlbGPT - Your Ultimate All-In-One AI Platform.
Access ChatGPT 4.1, Midjourney v7, Grok 3, Claude 3.7, DeepSeek, Gemini, Llama 4, Flux, Ideogram, Perplexity, Runway, Luma, and more—all in one platform.
10 AI websites to finish a day’s work in just 1 hour
[Bookmark This 🔖]
1. Flot AI - Anywhere AI Assistant
Download for Free →
→ Flot is the all-in-one AI assistant that helps you write better, read faster, and remember information across any apps and websites.
→ Built-in the latest ChatGPT, Claude, Gemini, etc. Flot.ai
AiSOAP - #1 AI Medical Scribe with AI SOAP Notes
Try it free today! 🔗
Trust me, it’s a game-changer. 💥
→ AiSOAP records, transcribes, and generates customized SOAP notes, saving you 95% of your charting time. Sounds too good to be true? It’s not. 🙌Try.aisoap.com
→ Join over 5 million savvy buyers who are using it to save money and increase profits.
• AI-powered Precision: Advanced image + text search delivers fast, accurate sourcing results
• Customizable Options: Discover verified suppliers supporting tailored customization solutions
• Seamless Integration: From product idea to fulfillment, streamline every step—right from your browser
2. AiSOAP - #1 AI Medical Scribe with AI SOAP Notes
AI Is Changing The Way Doctors Work
With AISOAP, doctors can quickly convert patient conversations into detailed SOAP notes in just seconds.
Try now →
This AI tool can reduce doctors' documentation time by an impressive 95%.try.aisoap.com/AIS