Search results for #JavaScriptWeirdParts
In JavaScript "not defined" is not the same as "undefined" 😉 #javascriptweirdparts
Function constructors are simple functions that are used to create objects in JavaScript with the new keyword. The this variable points to the new empty object and that object is returned from the function automatically. #TIL #Javascriptweirdparts
call( ), apply( ) and bind ( ) comes with all functions in JavaScript. For all three, *this* is defined by the argument passed. bind ( ) creates a copy of the function while call ( ) and apply ( ) execute it. apply ( ) requires an array of arguments. #javascriptweirdparts #TIL
Argument is array-like variable that contains the list of all the values of the parameters. Spread parameters take all the parameters that are not explicitly defined and wrapped them up together in an array. #TIL #javascriptweirdparts
When passing, setting or assigning primitive values in JavaScript, the value is copied to another by value (new and original values have two separate spaces in memory). For objects, by reference. #TIL #Javascriptweirdparts
Function expressions, like all expressions return a value, in this case the new function object. Function expressions are not hoisted. #TIL #javascriptweirdparts
Let’s all take a moment and let that sink in. 🤯 #javascriptweirdparts
#TIL Even though JSON looks a lot like JavaScript object literals, they are NOT the same thing as properties have to be wrapped in “” for JSON (stricter rules) JSON.stringify coverts Javascript Objects into JSON strings and JSON.parse do the opposite. #javascriptweirdparts
. /dot is member operator and [ ]/bracket is computed member operator. Just as fingers and toes are members of our bodies. Properties are members of an object. #TIL #Javascriptweirdparts
Because of JavaScript coercion, 1 + “2” = 12. Also true will be coerced into 1 while false to 0. (3 < 2 < 1) = true. Wow 😲, so neat, so cool. #TIL #javascriptweirdparts
#TIL Operators are pre-existing functions that are written as in-fixed notation, is it’s more human-readable. #javascript #javascriptweirdparts
JavaScript Functions are Objects @AnthonyPAlicea #javascriptweirdparts #mentalnote
JavaScript Understanding the Weird Parts 75 - Prototype Diagram 2 (OOP) #JavaScriptWeirdParts #JavaScript
JavaScript Understanding the Weird Parts 74 - Prototype Diagram 1 (OOP) #JavaScriptWeirdParts #JavaScript
JavaScript Understanding the Weird Parts 75 - Prototype Diagram 2 (OOP) #JavaScriptWeirdParts #JavaScript
JavaScript Understanding the Weird Parts 74 - Prototype Diagram 1 (OOP) #JavaScriptWeirdParts #JavaScript
JavaScript Understanding the Weird Parts 73 - Object-Oriented (OOP) : Prototype 4 #JavaScriptWeirdParts #JavaScript
JavaScript Understanding the Weird Parts 73 - Object-Oriented (OOP) : Prototype 4 #JavaScriptWeirdParts #JavaScript
JavaScript Understanding the Weird Parts 72 - Object-Oriented (OOP) : Prototype 3 #JavaScriptWeirdParts #JavaScript
JavaScript Understanding the Weird Parts 71 - Object-Oriented (OOP) : Prototype 2 #JavaScriptWeirdParts #JavaScript