What it does
Validates forms before they are sent, loads new content without reloading the page, powers maps, charts and editors, and runs entire applications in frameworks such as React, Vue and Angular.
Use it wisely
Every script has to be downloaded and run, often on slow phones. Heavy JavaScript hurts loading and responsiveness, so good sites keep it lean and render important content as HTML first.
Questions, answered
No. They are different languages with similar names for historical marketing reasons.
JavaScript with types added, which catches many errors before code runs.