I was working on creating a .NET Core-based API and came across a requirement to read a particular request header across the API controllers. To understand it better, let us say there are two API controllers, InvoiceController ProductController We need to read the value of a particular Request Header in both controllers. To do that,ContinueContinue reading “Reading Request Headers Across Multiple .NET Core API Controllers”
Monthly Archives: May 2024
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”