answersLogoWhite

0


Best Answer

Mainly JavaSript is a low-level scripting language that differs from the high-level languages in its easiness. The core language is really simple, and is designed to be easier for beginners,

I.e. JS i loosly typed. Meaning that a variable can reference any kind of literal, array or object, which differs from the high-level C-languages where you have to declare if a variable i to reference an integer, floating-point, string, hash-map and so on.

Another major difference is that JS, like python or php isn't compiled to machine code, but interpreted at runtime, making programs run significantly slower than compiled programs.

Another difference which is good, and unique to JS is that it does not inherit the C class model when working in OOP. Objects in JavaScripts can be crated and altered as one want to, beeing more dynamic to work with. A classical model can however be adopted with use of functions and use of the 'new' keyword. Here the lack of private variables can be worked around by the use of a technique called 'closure'.

The major difference however is that programs written in JS to work with the HTML DOM tend to not follow the normal procedural 'step-by-step' executions as conventional programs, where one line of code is being executed at the time. In stead JS tend to follow a Event Loop model, where different parts of the programs are attached to different DOM events. The JS-program will then sleep until a event is fired, then wake up, do its job, then go back to sleep. And so on. All in all making JS a very dynamic and "fun to work with" language.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

JavaScript is run in a web browser or a scripting engine, and does not need to be compiled into a binary to run. It can not generally access the system's hardware or storage, and has severe limitations on any other resources it has access to (memory, CPU time, etc). It can run on any system that can run JavaScript without source code modification (e.g. Windows, Linux, Mac OS, Solaris, PS3, etc).

C must be compiled to be executed, runs on the user's computer with substantially more trust than a web page, can access all of the system's hardware and other resources (within the limits of the operating system's permissions). It must be compiled for a specific type of hardware and cannot run on its own when placed on different hardware. As an example, a Mac cannot run C compiled for Windows.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between javascript and C programming language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between javascript and java programming langugage?

JavaScript and java are 2 completely different things. JavaScript is in web pages to make it more interesting and java is a complex computing language devised from c + c++.


What is the difference between javascript and java language?

JavaScript and Java are two different programming languages. Java is a server-side, statically typed language. JavaScript is a mostly client-side, dynamically typed language. Java supports heavy back end computations while JavaScript enables interactive AJAX ones.


Difference between awt and java script?

AWT is a Java package for creating graphical user interfaces. JavaScript is a completely unrelated programming language.


Difference between vbscript and java script?

Visual Basic script and JavaScript are both programming languages. JavaScript is used primarily to create websites, and has no user interface. Visual Basic is used to create software applications, has a user interface, and is less heavy on the code than JavaScript.


Is javascript a form of HTML used to add dynamic capabilities and interactivity to webpages?

Javascript is a language used WITH HTML. It is not HTML. HTML is a markup language used to delineate between different types of data. JavaScript is a programming language, containing logic, functions, and object.


Difference between C and C programming language?

The C and C programming languages are one and the same. There is no difference between those languages.


Short note on structural programming and procedural programming?

There is no difference between procedural programing language & structure programing language.


What is the difference between java and object oriented programming?

java is a programming language/platform that embodies object oriented programming concepts. The question of what is the difference is like asking what is the difference between cars and a Volvo.


What is the difference between oriented programming language and high programming language?

Set/subset: Some high level programming languages are object oriented, but not all of them.


What is a difference between Programming language and peoplecode?

Logic is same, but syntax is different.


What is the difference between single quotes and double quotes?

in programming, single quotes are for characters, and double quotes are for string, but in php, javascript, html, css i don't see any difference between the two.


What is the difference between the Linux shell and C?

C is a programming language. A shell is an interface.