TWTenzin woeserintenzinwoz.hashnode.dev路Aug 6, 2023 路 1 min readWhat is hoisting is JavaScript ?JavaScript moves declarations to the top of their scope. This means that variables and functions in JavaScript can be used before they are declared. The key things to know about hoisting are: Only declarations are hoisted, not initializations. This ...00
TWTenzin woeserintenzinwoz.hashnode.dev路Feb 16, 2023 路 2 min readJavaScript String methods and propertiesCharAt() The charAt() method returns the character at the specified index in a string. const string = "Hello" console.log(string.chartAt(2) //Output: l concat() The concat() method combines two or more strings in a single string const string1 = "Hel...00
TWTenzin woeserintenzinwoz.hashnode.dev路Jan 12, 2023 路 2 min readWhat is Event Loop in JavaScript?The event loop is the pushing of events from the event queue or callback queue to the javascript call stack. It is this concept which makes javascript behave like a multi-threaded programming language although it is single-threaded. Call Stack: It i...00
TWTenzin woeserintenzinwoz.hashnode.dev路Sep 27, 2021 路 1 min readJavaScript deep copy and shallow copyShallow Copy Whenever we create a copy of an object, we are not only copying the values inside the object but also all the memory reference to that object. In that way the new object values are actually pointed towards the original object memory ref...00
TWTenzin woeserintenzinwoz.hashnode.dev路Apr 22, 2021 路 1 min readWhat is Closure in Javascript?Simple definition for closure in javascript will be inner function having access to its outer function scope. Let's try to understand this with a simple example. function showDetails(){ var name = "Tenzinwoz"; function showName(){ cons...00