What is the scripting language

Web 2021-09-08 19:57:43 0 5,550

Most programs that run on computers are written in compiled languages. Compilation refers to the process of converting the code written by the programmer into instructions that the computer can understand. Once the program is compiled, we can run it on the computer. Since the compiled program has been directly converted into instructions that the computer can understand, it runs faster than a program written in a script programming language. Unfortunately, compiling a program is a time-consuming process. You have to write the program, compile it, and then test it. If the program does not work, you must go through the whole process again.

On the other hand, script programming languages ​​are compiled only when the interpreter (this is another program that can convert scripts into content that the computer can understand) reads it. Take JavaScript as an example, the interpreter is built into the web browser. Therefore, when the web browser reads a web page with a JavaScript program into it. The web browser translates JavaScript into content that the computer can understand. Therefore, script programming languages ​​run slower than compiled languages, because every time a script program runs, it must be translated for the computer. Script programming languages ​​are great for web developers. Scripts are usually smaller and less complex than desktop programs. Therefore, the lack of speed is not that important. In addition, since they do not need to be compiled. Creating and testing programs using scripting programming languages ​​is a faster process.


Your opinion

Already have 0 Article answer