FUNDAMENTALS OF COMPUTER

WEB BROWSERS TECHNOLOGY

WHAT IS WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
JavaScript is an ____ language.
A
compiled
B
interpreted
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -JavaScript is an interpreted language, not a compiled language. A program such as C++ or Java needs to be compiled before it is run. The source code is passed through a program called a compiler, which translates it into bytecode that the machine understands and can execute.

Detailed explanation-2: -An interpreted language is one that does not require compiling into machine language. It is executed by an interpreter who reads the source code and converts it into a form that is directly executed. The interpreter executes code line by line which makes JavaScript synchronous in nature.

Detailed explanation-3: -Interpreter: Reads and translates the file line by line on the fly. Initially, this is how JavaScript worked. Compiler: A compiler works ahead of time and creates a new file which contains the machine code translation for your input file.

Detailed explanation-4: -JavaScript is interpreted at runtime by the client browser. There is a tool called the Rhino JavaScript Compiler that supposedly compiles JavaScript into Java class files, though.

Detailed explanation-5: -JavaScript is an interpreted language. Your browser, most likely Netscape Navigator or Internet Explorer, acts as a translator between JavaScript and the native language that your computer uses.

There is 1 question to complete.