Year: 2021
-
Video – Master JavaScript ‘this’ in 30 Mins
Do you know, there are four ways to calculate the value of ‘this’ inside a JavaScript function? Some pointers about ‘this’ Every function has it’s own ‘this’ An arrow function does not have it’s own ‘this’ The value of ‘this’ depends on, how that function is called. The value of ‘this does not depend on…
-
JavaScript function is also a constructor?
JavaScript function is also a “constructor.” You must have heard it many times, haven’t you? Well, that is a wrong way of interpreting the JavaScript function; even though you can create an object using a function, it does not mean you can call it a constructor. Let us discuss it: There are four ways to…
-
Video – Angular Interview : is Angular Service Singleton ?
One of the most popular Angular interview questions is, whether a service is singleton? By default, when you create a service using the below CLI command, ng g s app AppService is singleton, however it can be re-provided to create more objects of it. Say, you again re provide AppService in one of the components,…