Event loop in JS
heap. where memory allocation happens call stack: is’t a data structure which records where in the program we are Single thread => one call stack => one thing at a timeNB (12′ 23″) The JS Runtime is single thread but Leggi tutto…
heap. where memory allocation happens call stack: is’t a data structure which records where in the program we are Single thread => one call stack => one thing at a timeNB (12′ 23″) The JS Runtime is single thread but Leggi tutto…
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 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 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 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 Leggi tutto…
https://dev.to/karkranikhil/face-recognition-using-javascript-33n5 https://github.com/justadudewhohacks/face-api.js/
https://www.gatsbyjs.org Gatsby is a free and open source framework based on React that helps developers build blazing fast websites and apps
https://raspberrypi4u.blogspot.com/2020/01/raspberry-pi-tensorflow-lite-object.html?m=1