HumHub – a free social network software and framework
https://www.humhub.com/en https://ponteryu.humhub.com HumHub is a free social network software and framework built to give you the tools to make communication and collaboration easy and successful. It’s lightweight, powerful and comes with an user-friendly interface. With HumHub you can create your own customized social network, social intranet or huge social enterprise Leggi tutto
dbKoda – MongoDB admin tool
dbKoda’s rich code editor allows you to compose MongoDB queries and scripts with syntax highlighting, auto-complete and code formatting. View output in foldable JSON, tabular format or as a chart. Generate visual explain plans with a single click. The explain plan viewer will suggest indexes that may improve performance, and provide one-button creation of those indexes. Leggi tutto
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 there are WebAPIs which behave like threads and are aware Leggi tutto
Tricky JavaScript Interview Questions and Answers
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
What is a closure and how do you use it
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
Tricky stuff: setTimeout
Using setTimeout makes the inside code asynchronous.The function in called after everything on the stack is finished.Check Event loop in JS
What is a Promise?
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
Difference between function declaration & function expression
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
Face recognition using JavaScript
https://dev.to/karkranikhil/face-recognition-using-javascript-33n5 https://github.com/justadudewhohacks/face-api.js/