Difference between: function Person(){}, var person = Person(), and var person = new Person()? — There are different ways (not to be exact) we can use functions in JavaScript, but with the given code below highlights important differences on how functions work. function Person() {} Function Declaration
Code above declares a function statement (statements perform an action) but does not execute, however, it does get registered…