DEV Community

Cover image for Javascript Essentials πŸ§‘β€πŸ’»

Javascript Essentials πŸ§‘β€πŸ’»

Gautam Anand on September 03, 2023

Introduction Well, we all start somewhere to start learning JavaScript, I wish this kind of beginner's guide would be available for me ...
Collapse
 
damian_cyrus profile image
Damian Cyrus

This was a nice wrap up reminder.

And I am always surprised how arrow functions get longer (like on your first line) than the normal one πŸ˜ƒ

It can be shorter in case of no need for writing β€˜returnβ€˜ like:

function addOne(addNumber) {
  return 1 + addNumber;
}

const addOne = (addNumber) => 1 + addNumber;
Enter fullscreen mode Exit fullscreen mode

Thanks for the joyful read.

Collapse
 
localhostd3veloper profile image
Gautam Anand

Thank you sir for the suggestions.
I’ll edit it right away ❀️

Collapse
 
masudalimran profile image
Masud Al Imran

There are new things to learn about JavaScript every day. The "print numbers from 1-5" interview question had me wondering how & why is it a thing.

Collapse
 
localhostd3veloper profile image
Gautam Anand

Indeed there's always something new to learn, everyone out there has their own way of explaining things.
Also, I love that knowledge is free <3

Collapse
 
alchemylab profile image
Luigi Pesce

Nice recap, thanks for sharing πŸ‘πŸ»

Collapse
 
zeeshanahmadkhalil profile image
Zeeshan Ahmad Khalil

Why you didn't used setInterval instead of setTimeout?

Collapse
 
localhostd3veloper profile image
Gautam Anand

They both have different functionalities, and to show asynchronus code I used setTimeout( ),

setInterval repeats the code for the specific number of times till its stopped.

Collapse
 
kwakyebrilliant profile image
a_moah__

Nice

Collapse
 
dandediu profile image
Dan Dediu

This is an excellent article! Thank you. Suitable for recapitulation and beginners.

Collapse
 
uabhisheknair profile image
uabhisheknair2001

Well written for beginner friendly.

Collapse
 
technologymoment profile image
TechnologyMoment

It's a valuable resource for beginners and a helpful refresher for experienced developers. Well-structured and practical. πŸ‘πŸ‘πŸ‘

Collapse
 
jeffch19 profile image
Jeffrey Cummings

Great article to help a beginner like myself!!