The theoretical difference between the two is that scripting languages do not require the compilation step and are rather interpreted. For example, normally, a C program needs to be compiled before running whereas normally, a scripting language like JavaScript or PHP need not be compiled.
What is the difference between a compiled program and a script?
Scripting languages are interpreted and executed line by line when a script is run, while compiled languages need to be converted into executable code. Compiled languages are executed by a command interpreter, while scripting languages are executed by the CPU.
Does scripting language use compiler?
Scripting languages support "script," which is small program written for a specific runtime environment. These are interpreted at runtime rather than compiled. It means, to convert the source code to machine code, scripting languages use an interpreter, not the compiler.