Video – Partial Type in TypeScript

This video explains Partial Type in TypeScript. interface IProduct { name: string; price: number; } function SaveProduct(product: Partial<IProduct>) { console.log(product.name); console.log(product.price); } SaveProduct({ name: “Laptop”, price: 1000 }); SaveProduct({ name: “Mobile”, price: 500 }); SaveProduct({ name: “Tablet”}); https://www.youtube.com/watch?v=q5wE_QjBtVU

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”