JavaScript Revised Version
1. let, var, and const
var
function test() {
console.log(x);
var x = 10;
}
...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
Bro forgot the parenthesis in the first example. Swear this was js not python 🤣
100% AI generated
I have reported the user for using AI tooling to write non professional articles, please do the same so we can sort out the garbage from actually useable posts.
permit
keyword is my second favorite afterkermit
keyword.Permit keyword works ?
And Kermit keyword uses?
Advanced concepts in how not to write an article.
Damn, did AI write this?
I do not fear AI if this is the quality it produces. For the 'author' do not post on topics you do not understand. As clearly the example code is wrong.
Please don't make posts about things you don't understand.
What a useless and misleading article.
Some good points. Closure, can also be created and maintained from within a function, not only outside variables. Async could have also been added to this list.
very informative
What the...
Advanced author tip : close your eyes and copy paste that code
Coding is !hard. 😃
why we use IIFI?
Sometimes a block of code can only neatly exist inside a function, and immediately thereafter require execution. You see this often in reactjs. Where an async function needs to be executed inside a sync function