Problem
Overview:
Explain a comparison of the JavaScript language to the C++ language. As a result, you will submit a short length comparing the two, describing the JavaScript language and demonstrating some of its basic syntax, as well as one or more completed code examples.
Details:
Include information pertaining to the history of JavaScript, as well as a brief look at the syntax and features of JavaScript, especially with regard to key elements that we see in C++; such as the decision structures, loops, functions, arrays, and pointers. To further assist you in collecting information, answer these questions below.
1. When was JavaScript developed, and why?
2. What is JavaScript used for?
3. Is JavaScript based on a previous language? If so, which one?
4. What paradigms are used to describe it?
5. Is JavaScript object-oriented?
6. How does JavaScript handle decision structures (if, if-else, switch, etc)?
7. How does JavaScript handle looping (for, while, do-while, etc)?
8. How does JavaScript handle modularization (functions)?
9. Does JavaScript support arrays, or other collections and lists?
10. Does JavaScript support pointers, or some other method of direct memory access.