What is the difference between function and class declarations

Posted by Jessica Taylor | Updated on

The main difference between function declarations and class declarations is hoisting. The function declarations are hoisted but not class declarations.


Constructor Function:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers