sohamkamani leocode Build your SaaS- 1 Build your SaaS- Blog Build your SaaS- Github —- 1. Node.js + MongoDB: User Authentication & Authorization with JWT
Category: Java Script
Java Script
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
Date Manipulation With Moment
How do I format a date as ISO date(mongodb) using moment.js? https://stackoverflow.com/questions/63052605/how-do-i-format-a-date-as-iso-datemongodb-using-moment-js selectedDate = moment(new Date(), ‘YYYY-MM-DDT’) selectedDate.toISOString() : ‘2021-09-15T10:00:46.039Z’ elem.start_time: ‘Wed Sep 15 2021
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
DOM
<div id=”page”> <h1 id=”header”>TO DO LIST</h1> <ul> <h2>DataFlair’s JavaScript Tutorial</h2><DataFlair’s> <li id=”one” class=”mandatory”>Learning the concepts</li> <li id=”two” class=”mandatory”>Practising the codes</li> <li id=”three”>Taking quizzes</li> <li id=”four”>Solving
Dynamic Module Imports
Dynamic Module Imports Destructuring Video: How To Use Destructuring And The Spread Operator? Async Await Video Post Views: 1
Rest Spread Operator – Objects
Rest Parameter [ …rest] It is a collection of all remaining elements (hence, the name rest, as in “the rest of the elements”) into an
Web Security
Display incognito / chrome private browser history / chrome history : -> run as administrator -> ipconfig/displaydns -> ipconfig/flushdns How to see and DELETE your
Stripe Payment Integration
Developer tools Stripe Developers Youtube stripe-samples Post Views: 3
Paypal Integration
Intro To The Node.js PayPal REST SDK bradtraversy / node_paypal_sdk_sample – Git https://github.com/bradtraversy/node_paypal_sdk_sample/blob/master/app.js const express = require(‘express’); const ejs = require(‘ejs’); const paypal = require(‘paypal-rest-sdk’);