Create Hello World Function (Closure - Day1) - Leetcode 2667 - JavaScript 30-Day Challenge

preview_player
Показать описание
Starting Leetcode's 30 day javascript challenge with leetcode 2667. Today's topic is closure but we discuss several more topics.

0:00 - Read the problem
0:50 - Coding Solution
3:10 - Article Editorial - Function Syntax
4:35 - Function Hoisting
4:35 - Arrow Functions
7:10 - Closures
11:15 - Spread Operator

leetcode 2667

#neetcode #leetcode #python
Рекомендации по теме
Комментарии
Автор

Let me know if you want more or less details. Today's problem was obviously trivial, but wanted to go through some more concepts.

And yes, I'll still be doing the 'normal' daily leetcodes 😃👍

NeetCodeIO
Автор

The timing for this challenge and these videos are so good. I have frontend interviews coming up and they all ask JS specific questions. Thanks neet!

alanwu
Автор

I would recommend this to anyone who want to understand closures, factory functions, higher order function, function syntax differences between them, function hoisting, and spread operator, this all very well explained in less than 15 minutes, bro thank you so much, i have seen 50 minutes video for only closures and still didnt get them, i just understood this after your video

amdbest
Автор

Thank you for covering the concepts, especially the closure example on IDE

Android-
Автор

Had no idea that you have another yt channel. I am doing a lot of typescript lately so this can be helpful. Subscribed!!

SHARMATUSHAR_
Автор

This channel is a treasure, thanks a bunch❤

mohamedantar
Автор

Yay, sooo dann happy to find something i can actively follow along.

monke
Автор

Very well explained and covered 360 way around the topic. Claps x 10 for your hard work

MohdMonis-zfgj
Автор

In 15min you made my day. I didn't know about arrow functions doesn't support hoisting. And I have a better understanding of closures. 🎉✌️🙏

wilkyarny
Автор

Great video!! The closure explanation was really consise!

thecommondude
Автор

Finally 🎉 keep us updated for full 30 days !!!

muditsharma
Автор

Tons of useful information is one short video! Thank you!!!🤩

UlianaSarkisova
Автор

Thank you please continue this series.

prashlovessamosa
Автор

i had no idea about this new challenge and was in my bed, but as soon as i saw the notification, i got up from my bed to solve it .

ps: i am from india and the time is 1:12am here 😶‍🌫️

BurhanAijaz
Автор

Thank You for the Solution and please keep the concepts explanation like that.

abusufyanmalik
Автор

That IDE looks super helpful, which one is that?

andrewbarrett
Автор

better to mention rest operator than spread in terms of collecting arguments in the list

messiisthebest
Автор

Worth pointing out that only functions declared as "function myFunc() {..}" are hoisted. If you declare them as "var myFunc = function(){..}" or "const myFunc = function(){..}" like in the video, they aren't hoisted. Which also explains why closures like "const myFunc = () => {..}" are never hoisted.

vader
Автор

Thank you, Could you please continue this series for GoLang, Scala?

manalitiwari
Автор

can someone explain what does the code at line 9 (increment: increment) do?

ipizza