JavaScript: Arrow Functions vs Regular Functions
https://medium.com/swlh/javascript-arrow-functions-vs-regular-functions-5ec4a9076796
https://medium.com/swlh/javascript-arrow-functions-vs-regular-functions-5ec4a9076796
https://medium.com/coding-at-dawn/what-are-falsy-values-in-javascript-ca0faa34feb4
https://www.toptal.com/nodejs/interview-questions
Question #1 Question #2Sorting in JS consider element as string Solution is: Question #3 Solution is: MIN_VALUE is the smallest number in JS! Question #4+operates on strings & number, so if it’s not a string or number it would try to convert into them… Question #5In JS there’s a MAX_SAFE_INTEGER, Leggi tutto…
Closures are important because they control what is and isn’t in scope in a particular function, along with which variables are shared between sibling functions in the same containing scope. Definition of the Closure given by Douglas Crockford: crockford.com/javascript/private.html Example: Closure is useful in hiding implementation detail in JavaScript. In other Leggi tutto…
Using setTimeout makes the inside code asynchronous.The function in called after everything on the stack is finished.Check Event loop in JS
A promise is an object that may produce a single value some time in the future: either a resolved value, or a reason that it’s not resolved (e.g., a network error occurred). A promise may be in one of 3 possible states: fulfilled, rejected, or pending. Promise users can attach Leggi tutto…
They’re actually really similar. How you call them is exactly the same.The difference lies in how the browser loads them into the execution context. Function declarations load before any code is executed. Function expressions load only when the interpreter reaches that line of code.Function expression has variable scope as wellIf Leggi tutto…
https://dev.to/coderbyte/a-javascript-interview-question-asked-at-google-19f1 https://dev.to/coderbyte/a-tricky-javascript-interview-question-asked-by-google-3gnf https://github.com/sudheerj/JavaScript-Interview-Questions https://github.com/sadanandpai/javascript-code-challenges https://www.geeksforgeeks.org/top-50-array-coding-problems-for-interviews/ https://github.com/prabaprakash/Hackerrank-JavaScript-Solutions