what is AOT and jit in angular code example

Example 1: angular build aot vs jit

Just-in-Time (JIT), compiles your app in the browser at runtime.
Ahead-of-Time (AOT), compiles your app at build time on the server.

ng build --prod  --> JIT
ng build --aot 	 --> AOT

Example 2: jit compiler vs aot compiler

Ahead-Of-Time(AOT) converts high level language like C. C++ or
intermediate bytecode of a language into a pre-packed and 
compiled file DURING YOUR BUILD TIME.
So no need to wait for compilation at runtime.

Just-In-Time(JIT) compiles intermediate code into machine code
during runtime as needed, then stores currently compiled code
in a cache to reuse as needed while standing by for new calls
to compile until execution is complete. Saves memory.