Mujeeb Ahmed Profile picture
Mar 7, 2022 11 tweets 3 min read Read on X
JavaScript Objects 🔥🔥(Thread).
1. What is an Object in JavaScript?

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: Syntax:Example.
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
 

Keep Current with Mujeeb Ahmed

Mujeeb Ahmed Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @hey_mujeebahmed

Apr 17
ChatGPT Pro costs $200/month—too expensive!

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 ↓ Image
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.

Try it now👉 glbgpt.com
1. Chat with Top AI Models

• ChatGPT 4.1, Grok 3, Claude 3.7
• Llama 4, DeepSeek-R1, Gemini 2.0
• Perplexity, Mistral, MiniMax, Moonshot, QvQ
Read 9 tweets
Apr 17
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🔖 Image
1. Introducing Intellectia - The Leading AI Investment Platform, Where AI Aligns with Your Ambitions!

DayTrading Center, which is its standout feature, Your Real-Time Edge for Smarter Trades.

→ Unlock daily trading opportunities with real-time event-driven insights & technical signals

→ Simplified, powerful tools for the intraday bottom and top signals—trade like a pro, effortlessly!
2. Mural

→ Mural is a digital workplace that facilitates visual collaboration, brainstorming, and ideation.

→ It's an excellent resource for remote teams trying to emulate the benefits of in-person seminars and meetings.

mural.co/mural-ai
Read 10 tweets
Apr 15
Think you’ve explored all the top AI tools?

Think again🤔

Here are 7 AI websites that will blow your mind↓ Image
1. Oncely - Top 1 Lifetime Deal Marketplace for AI Software

Join for Free 👉

→ A New Way of Buying AI Software, Pay once, Use forever.

→ The smartest way to leverage AI in your business and career before everyone else.

→ 60 days money-back guarantee on all deals.oncely.com/subscribe
2. Startpage

→ A privacy-first search engine that delivers Google results without tracking or storing your personal information.

startpage.com
Read 9 tweets
Apr 12
10 AI websites to finish a day’s work in just 1 hour

[Bookmark This 🔖] Image
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
Read 13 tweets
Apr 8
8 hidden AI websites that turn a full day's work into just 1 hour.

Bookmark this one! 🔖 Image
1.  Accio - The world's first AI sourcing agent!

One million business owners are using this AI to find suppliers.

Get Free Access → aisecret.co/accio-3

• Transforms blurry ideas into actionable and data-backed analysis within 2 minutes.
• Turn weeks of inspiration researches into seconds, saving 99% of time
• Launch business with confidence, knowing market trends and optimized sourcing recommendation with suppliers thoroughly assessed and recommended.
• Gain business success faster!
2. MyScript Nebo / @myscript

→ Transforms text prompts into stunning, watermark-free images, allowing users to generate up to five artworks daily for free.

→ Offers extensive customization with different models, styles, aspect ratios, and starting photos.

myscript.com
Read 10 tweets
Apr 7
I don't understand why people aren't using AI for trading.

Here are 10 AI Websites that can be used for trading in 2025: Image
1. Introducing Intellectia - The Leading AI Investment Platform, Where AI Aligns with Your Ambitions!

DayTrading Center, which is its standout feature, Your Real-Time Edge for Smarter Trades.

Try it free today! → Try.intellectia.ai

→ Unlock daily trading opportunities with real-time event-driven insights & technical signals
→ Simplified, powerful tools for the intraday bottom and top signals—trade like a pro, effortlessly!
2. Spiking

→ The AI-powered stock tracking platform for smarter investments!
→ Leverage AI-driven insights to track market moves like the pros.
→ Get real-time data on what top investors are buying and selling.

spiking.com
Read 12 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(