Find the JavaScript Bug #2 🐞

preview_player
Показать описание
In this tutorial, we look at how you can catch and prevent a silly mistake in a common pattern found in JavaScript code (especially in the React ecosystem) 🌹

#basarat #JavaScript #TypeScript #sanabasarat

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

even a good topic and a new outro, thanks

nandordudas
Автор

I saw the video by that other dude(ui.dev), now that I see yours, I embrace my love for Typescript, again, even more. It would be cool if you linked that dude's video here so that people can see his way of solving this bug in vannila js. And who's that girl at the end!?

hemanthkotagiri
Автор

first of all defining this variable is redundant

vonsko
Автор

Isn't there a bug on line 1 as well? Pretty sure optional parameters need to be declared at the end, so the first argument being declared as a blank array is incorrect.

glen