Ajay Yadav Profile picture
Mar 25, 2022 β€’ 9 tweets β€’ 3 min read β€’ Read on X
πŸ’› Day 2️⃣3️⃣ / 3️⃣0️⃣ days of basics in JavaScript series!

β†’ What is a function declaration?

β†’ What is a function statement?

β†’ What is function expression?

β†’ Difference between function declaration & function expression?

β†’ What is an anonymous function?

#javascript30
πŸ§΅β‡© Image
πŸ“Œ What is a function declaration?

β†’ A function declaration always starts with the "function" keyword.

β†’ The function declaration must have a function name. Image
πŸ“Œ What is a function statement?

β†’ The function statement is the synonym of the function declaration.

β†’ Both are the same.
πŸ“Œ What is function expression?

β†’ This is also a function but without a function name.

β†’ A function expression can be stored in a variable using the (=) assignment operator.

β†’ The function can be assigned in a variable as a value using the (=) assignment operator.
β†’ And they are always called(invoke / run) using the name of the variable.

β†’ Here "squares" is the name of the variable. Image
πŸ“Œ Difference between function declaration & function expression?

β†’ The main difference is that function declaration is hoisted but not function expression.

β†’ We can call/invoke the function declaration "after" and "before" the function definition. Image
β†’ But function expression can only invoke/run/call "after" the function definition.

β†’ If we call the function expression before initialization, then this will give an error.
πŸ“Œ What is an anonymous function?

β†’ A function without a name is called an anonymous function. Image
πŸ’š That's all for now, we will meet in the next thread!

But if you like make sure to:

1. Follow me @ATechAjay

2. Retweet the first tweet.

3. Turn on the notification to never miss these amazing tweets.

Thank you so much for staying to the end of this thread.

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Ajay Yadav

Ajay Yadav 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 @ATechAjay

Jun 20
10 Incredible AI Tools You Won't Believe Exist in 2024!

[Bookmark for later use πŸ”–] Image
1. Momen: Build Web Apps with No-Code

Momen simplifies AI app creation with user-friendly tools, easy data integration, seamless workflow integration, and customizable frontend design using a component library and infinite canvas.

go.momen.app/QJfvkTDb
2. Microsoft Loop

An online collaboration platform by Microsoft, seamlessly integrating teams, content, and tasks across apps and devices.

loop.microsoft.com
Read 12 tweets
Jun 19
Google Chrome offers 130,445 extensions, but only a few extraordinary.

These 7 will save you hours.

[Bookmark for later use πŸ”–] Image
1. Pop AI

Student's best friend for an easy life, enabling them to chat with PDF, create presentation , generate organizational charts,write,academic essays and craft killer CVs all in one platform.
2.Compose AI

Compose ai is a chrome extension that cuts your writing time in 40./. with ai powered autocompletion and text generation.
Read 9 tweets
Jun 3
Google Chrome offers 130,445 extensions, but only a few extraordinary.

These 7 will save you hours.

[Bookmark for later use πŸ”–] Image
1. Pop AI

Student's best friend for an easy life, enabling them to chat with PDF, create presentation , generate organizational charts,write,academic essays and craft killer CVs all in one platform.
2.Compose AI

Compose ai is a chrome extension that cuts your writing time in 40./. with ai powered autocompletion and text generation.
Read 8 tweets
Apr 14
MIT University just released free online courses.

100% Free, No Cost

Here are 7 courses you can't afford to miss in 2024: ↓ Image
1. Introduction to Computer Science and Programming Using Python.

Topics:

β†’ Python programming language
β†’ Simple algorithms
β†’ Data Structures
β†’ Introduction to algorithmic complexity

buff.ly/3ORSEOo
2. Machine Learning with Python

Topics:

β†’ Model Implementation & Analysis
β†’ Model Selection
β†’ ML Project Execution
β†’ Training, Validation, Tuning, Features

buff.ly/3UOgb6u
Read 8 tweets
Apr 9
OpenAI just launched a big upgrade. πŸ₯³

ChatGPT is now 10x easier to use. πŸ’Ή

Check out 7 new features of ChatGPT you shouldn't miss.

[Important thread, Bookmarked itπŸ”–] Image
1. Edit Images

You can now edit DALLΒ·E images in ChatGPT on the web, iOS, and Android.
2. No Sign up needed

OpenAI is making it easier for people to enjoy AI benefits without signing up.
Read 8 tweets
Mar 31
MIT University just released free online courses.

100% Free, No Payments

Here are 7 courses you can't afford to miss in 2024: ↓ Image
1. Introduction to Computer Science and Programming Using Python.

Topics:

β†’ Python programming language
β†’ Simple algorithms
β†’ Data Structures
β†’ Introduction to algorithmic complexity

buff.ly/3ORSEOo
2. Machine Learning with Python

Topics:

β†’ Model Implementation & Analysis
β†’ Model Selection
β†’ ML Project Execution
β†’ Training, Validation, Tuning, Features

buff.ly/3UOgb6u
Read 8 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!

:(