
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the difference between JavaScript and C++?
The following are the differences between JavaScript and C++.
JavaScript is a lightweight, interpreted programming language. It is designed for creating network-centric applications. It is complementary to and integrated with Java. JavaScript is very easy to implement because it is integrated with HTML. It is open and cross-platform.
C++ is a middle-level programming language developed by Bjarne Stroustrup starting in 1979 at Bell Labs. It runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.
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.
In Java, you have to declare the type of the variable with the variable, for example,
int a; float f;
In JavaScript, you need to only write the variable name, without adding the type. After that, you can assign the value like 5 for int, “amit” for string, etc.
var a; var f
JavaScript supports Java virtual machine implementation, whereas C++ does not support Java virtual machine implementation.
C++ support procedural and generic programming. JavaScript support reflective programming
- Related Questions & Answers
- What is the difference between jQuery and JavaScript?
- What is the difference between Java and JavaScript?
- What is the difference between JavaScript and ECMAScript?
- What is the difference between == and === in JavaScript?
- What is the difference Between C and C++?
- What is the difference between comments /*...*/ and /**...*/ in JavaScript?
- What is the difference between JavaScript frameworks?
- What is the difference between | and || operators in c#?
- What is the difference between C++0x and C++11?
- What is the difference between window.onload and document.onload in Javascript?
- What is the difference between Bower and npm in JavaScript?
- What is the difference between call and apply in JavaScript?
- What is the difference between null and undefined in JavaScript?
- What is the difference between a++ and ++a in JavaScript?
- What is the difference between getter and setter in JavaScript?