
JavaScript conversion tips
In this post I will write about some tips on JavaScript Conversion from type to values etc. Tip 1: Boolean values In JavaScript one can use the double not (!!) to convert a variable to a Boolean. What the !!…
Practical guides on AI agents, LLM security, C#/.NET and Cloud, from Taswar Bhatti

In this post I will write about some tips on JavaScript Conversion from type to values etc. Tip 1: Boolean values In JavaScript one can use the double not (!!) to convert a variable to a Boolean. What the !!…

Here is another quick tip on JavaScript, the default value in Javascript. If you are coming from the C# world you may have seen something along the line of string str = person.FirstName ?? “Unknown”; The above code shows the…

In JavaScript there are two types of equality operator, the === and the !== , sorry I forgot to mention their evil twin == and != . tsdr; (too short didn’t read) Use three equals unless you fully understand the…

Here is Javascript quick tip debugger for Javascript developers, there is a debugger statement in JavaScript, which invokes any available debugging functionality. e.g setting a break point, and if there is no debugging functionality available the statement has no effect.…

Here is another quick tip on creating modular JavaScript, namely function wrappers, or more technically called Immediately-Invoked Function Expression (IIFE). A self-invoking anonymous function runs automatically/immediately when you are create it, but don’t confuse it with document.ready or window.onload. The…