sohamkamani leocode Build your SaaS- 1 Build your SaaS- Blog Build your SaaS- Github —- 1. Node.js + MongoDB: User Authentication & Authorization with JWT
Tag: Javascript
JavaScript Arrays Cheat Sheet
Static Properties Array.from(‘123’); // [‘1′,’2′,’3’] Array.isArray([1,2,3]); // true Array.of(1,2,3) // [1,2,3] Instance Properties Search or run test on array [1,2,2,3].indexOf(2); // 1 [1,2,2,3].lastIndexOf(2); // 2
Javascript Tips
Advance JavaScript Runtime Reference : Namaste 🙏 JavaScript Lydia Hallie Object Clone Secrets 1. Here “z” property will not display //Object clone secrets //copy/deep clone
Handling Time Zone in JavaScript
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
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
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,
Javascript Objects Prototype
javascript-prototype-and-prototype-chain-explained javascript-factory-functions-vs-constructor-functions prototype-in-javascript Prototype – GeeksforGeeks Object Definition – W3 Kirupa – Object Deeper Look How to loop through objects keys and values in Javascript?