[Solved] Calling a function inside a function in node js


module.exports = {
    user1: {
        updateNewUser: (req, res, next) => {
            console.log("User1")
        }
    },
    user2: {
        updateNewUser: (req, res, next) => {
            console.log("User2")
        }
    }
}

const one = require('./one.js')
one.user1.updateNewUser(<p1>, <p2>, <p3>)

https://stackblitz.com/edit/js-vrz6t8?file=one.js

0

solved Calling a function inside a function in node js