Convert date to another timezone in JavaScript https://stackoverflow.com/questions/10087819/convert-date-to-another-timezone-in-javascript Handling Time Zone in JavaScript https://medium.com/@toastui/handling-time-zone-in-javascript-547e67aa842d#:~:text=In%20this%20scenario%2C%20you%20can,current%20time%20zone%20in%20minutes.&text=The%20return%20value%20of%20%2D540,minutes%20ahead%20of%20the%20target. var aestTime = new Date().toLocaleString(“en-US”, {timeZone: “Australia/Brisbane”}); console.log(‘AEST time: ‘+ (new
Category: Java Script
Java Script
TimeZone
World Time Zones Map Time Calculation : one day = 24 hours 24 Parts; Circle has 360 degree 360/24 = 15 degree Each part has
ECMAScript 6 modules
1. Module systems for current JavaScript JavaScript does not have built-in support for modules, but the community has created impressive work-arounds. The two most important
Javascript Array and Object Methods – Immutable
Get Difference between two Arrays of Objects in JavaScript Get the Difference between Two Arrays in JavaScript Check if an Object Property is Undefined in
JavaScript Object Manipulation
Object Declaration: An empty object (empty cabinet) can be created using one of two syntaxes: let user = new Object(); // “object constructor” syntax let
Core Javascript
Concept of Immutable and Mutable Immutable : We can not change value of primitive type, all the primitive types are immutable Ex : null, undefined,
Javascript Module Pattern
This simple diagram that helps me to understand the difference between require and import. You can’t selectively load only the pieces you need with require
JavaScript Block Scope
Variables declared with the “var” keyword can not have Block Scope. Variables declared inside a block {} can be accessed from outside the block. Example
Arrow Function : What About this?
The handling of “this” is also different in arrow functions compared to regular functions. In short, with arrow functions there are no binding of “this”.
Javascript this keyword – What is ‘this’?
The JavaScript “this” keyword refers to the object it belongs to. It has different values depending on where it is used: 1. In a method,