Question: what are the main difference between javascript and c++?
Answer: JavaScript is a scripting whereas C++ is a programming language. C++ program is to be compiled and executed, whereas a script in JavaScript is interpreted. JavaScript is dynamically typed whereas C++ is statically typed.