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

Web Security

Display incognito / chrome private browser history / chrome history : -> run as administrator -> ipconfig/displaydns -> ipconfig/flushdns How to see and DELETE your

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’);

1 2 3 5