Class within a class or constructor function

const LocalStrategy = require("passport-local").Strategy;

passport.use(new LocalStrategy(
  <removed>
))

Saw this in an example. Can you guys tell from the above what LocalStrategy is? Given it was pulled out of a module, which I believe is a class itself, I think it has to be an instance of a constructor function, right?

I am still a bit hazy on this concept. I don’t think .Strategy can be another class inside the default export class in passport-local. Maybe I’m wrong on that point though.

Class in js is just another object, which can be nested within other objects.

i dont believe js actually has classes the same way other languages do. Using the class syntax is a newer feature in js and is basically just a cleaner way to create objects