when I require “express” I need to know if its an object or function
问题 Given my code const express = require("express") const app = express() console.log(typeof app) console.log(typeof express) My terminal tells me that both of these variables are functions! This makes no sense to me because I can access properties from each of them as if they were objects and yet when I do a typeof in console.log my terminal tells me they are both functions. Can someone please explain to me what these variables are and why its possible to access their properties as if they were