Category : async-await

const axios = require("axios"); const Parser = require("./utils/parser"); const WebStore = require("./models/webstore"); const mongoose = require("mongoose"); require("./db/connection"); require("dotenv").config(); const url = ""; const app_secret = process.env.APP_SECRET; const buff = new Buffer(app_secret); const base64 = buff.toString("base64"); axios .get(url, { headers: { Accept: "application/json", Authorization: `Basic ${base64}`, }, params: { from_date: "2020-02-19", to_date: "2021-02-21", }, }) .then(async ..

Read more

Hi All members of my community Stack Overflow i little confusing by different opinion of imperative style and declarative style : Opinion 2: is imperative style when we declare some code or function that we don’t know what does behind the since and more short then declarative which is we declare each line of our ..

Read more