Key announcements from the Angular Team about Angular and its future at the ngPoland keynote

On November 6, 2024, I attended the Angular Team’s keynote at ng-Poland, Europe’s largest Angular conference. The keynote was presented by Mark Techson, Alex Rickabaugh, and Pawel Kozlowski from the Angular team. Here are some key features I gathered from the keynote announcement. These enhancements and additions are impressive and will significantly advance the AngularContinueContinue reading “Key announcements from the Angular Team about Angular and its future at the ngPoland keynote”

Which is more suitable to use, isNaN or Number.isNaN() in JavaScript

In JavaScript, NaN is a valid value of the number type. console.log(typeof NaN); // number When prompted to verify if a value matches NaN or not, you’ll encounter an irony: NaN doesn’t equate to itself. Therefore, standard equality comparisons are ineffective for checking NaN values. if(NaN === NaN){ console.log(“NaN is equal to NaN”); } elseContinueContinue reading “Which is more suitable to use, isNaN or Number.isNaN() in JavaScript”

Choosing Between for..in Loops and Object.values() in JavaScript

To determine whether to use a for…in loop or Object.values, consider a scenario with two objects const Product = { name:”product1″, price:100, } const ProductInvoice = { invoiceno : “invoice1”, customer : “customer1”, } These objects are linked to each other in the prototype chain. Object.setPrototypeOf(ProductInvoice, Product); Now, you iterate and list the values withContinueContinue reading “Choosing Between for..in Loops and Object.values() in JavaScript”

Object.values to iterate JavaScript object properties

In JavaScript, you can display the values of all public enumerable properties of an object by using Object.values(). For instance, if you have an object like the one depicted below: const Product = { name:”p1″, price:100, } You can output the values of all properties by utilizing Object.values() like this: let p = Object.values(Product); console.log(p);ContinueContinue reading “Object.values to iterate JavaScript object properties”

JavaScript Interview Ep # 1 – What is function expression and declaration

There are three ways a JavaScript function can be created. They are as follows: Function declaration Function expression Arrow function When you create a function as a declaration or statement, it gets hoisted at the top of the execution context and can be used before it is made. Example below: console.log(Foo()); function Foo(){ return “ReturnedContinueContinue reading “JavaScript Interview Ep # 1 – What is function expression and declaration”

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 how the functionContinueContinue reading “Video – Master JavaScript ‘this’ in 30 Mins”

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 toContinueContinue reading “JavaScript function is also a constructor?”