What JavaScript Is
JavaScript is a language often used to make a web page do something after it loads. At a beginner level, the most helpful way to think about it is simple: JavaScript adds behavior.
That behavior might be small, such as showing a message, reacting to a click, or updating part of a page after someone types.
JavaScript is about what a page does, not just what it is or how it looks.