Scripting languages (JavaScript, Python , bash etc.) are interpreted at run-time. The commands written in scripting languages are read and executed line by line . A separate program is required to read the code,interpret it and then follow the instructions in the code. An error is issued when a line cannot be executed for any reason.
Programming languages/Compiled languages (C, C++, Java, Visula Basic etc.) must be compiled before they can be executed. A compiler converts your source code into an executable machine code. Once it is compiled, it can be executed any number of times. Since compiled code has already been interpreted into machine language, so it will typically execute faster.