JavaScript (JS) is the lingua franca of web development. It supports functional (especially for web programming), and object-oriented programming paradigms, and has weak typing. A popular superset of JavaScript is TypeScript, which adds static typing analysis.
Reserved keywords in JS:
Language features
Libraries, dependencies, and frameworks
Development environments
Embeds
We can embed JavaScript within HTML documents with the <script>
tag. Some additional features:
<script src="code.js"></script>
can compactly embed a JS program stored in a different file.
Resources
- Eloquent JavaScript: A Modern Introduction to Programming, by Marijn Haverbeke
- You Don’t Know JS Yet (and first edition), by Kyle Simpson