You have probably read that JavaScript is an interpreted language, while others argue that it's not an interpreted language and that it's actually a compiled language. Is javascript compiled or interpreted?
This can be confusing,
I was often confused because I received conflicting answers whenever I read books or articles about JavaScript being an interpreted or compiled language. But the truth is that it depends on how the language is implemented.
Let me explain.
Read the article here: https://robiul.dev/is-javascript-compiled-or-interpreted-language