🔰runtime
the period when a program is running (generally after compile-time).
determined at compile-time.
but created at runtime (each time a scope needs to run).
identifiers are registered to respective scope during compile-time.
but in sloppy mode, you can cheat it at runtime. ( 👉 modify current scope at runtime❗️❗)
is not fixed in a method.
is passed (at runtime) by the function call. 👉 method binding.
dynamically typed - the type of a value can be changed at runtime.
dynamic binding (the value of an identifier is not determined until runtime)
compilation - how JS is compiled
compare:compile-time
scopes are created at runtime.
Baeldung ⟩ Runtime vs. Compile Time
Last updated
Was this helpful?