Better definition of an instance


#1

Newbie doing intro to javascript here. I’d like some additional details on this line:
“Libraries are collections of methods that can be called without an instance.”

What creates an instance? Can anyone provide a simple console example of when there is an instance and when there is not?

Thanks!


#2

see this documentation:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.