Skip to content

Instantly share code, notes, and snippets.

View nurmdrafi's full-sized avatar
:octocat:
Focusing

Nur Mohamod Rafi nurmdrafi

:octocat:
Focusing
View GitHub Profile
@nurmdrafi
nurmdrafi / JavaScript Hacks.md
Last active January 27, 2024 18:11
JavaScript Hacks by Rafé
@nurmdrafi
nurmdrafi / JavaScript Output TEST.md
Last active July 9, 2022 11:47
JavaScript Output TEST

Q: What will be the output of following code and why ?

(function ex(){

  var hello = function(){
  console.log(`I am JavaScript lover`)
};
    function hello(){
 console.log(`I am Java lover`)
@nurmdrafi
nurmdrafi / Different output of var and let.md
Last active January 28, 2022 15:35
Different output of var and let
1. Basic Installation
> Install required modules
> Delete unnecessary files
> Create components
> Setup routes
> Custom active link
2. Firebase
i) Initialize firebase
> firebase.init.js
-----------------------------------------
⭐⭐⭐ONE TIME FOR YOUR COMPUTER⭐⭐⭐
-----------------------------------------
> create heroku account
> verify email
> install heroku cli
> heroku login
---------------------------------
⭐⭐⭐CHECK BEFORE DEPLOY⭐⭐⭐

Steps to follow for pagination

Step - 1

Getting total number of products from Database (Server side)

app.get('productCount', async (req, res) =>{
  const count = await productColllection.estimatedDocumentCount();
res.send({count});
});