Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.16 KB

File metadata and controls

40 lines (27 loc) · 1.16 KB

JavaScript: A Step-by-Step Tutorial by Example

A structured JavaScript primer of around 27 short, worked examples that build up the core of the language one concept at a time. Intended as a self-contained, example-driven introduction for readers coming to JavaScript for scientific or web programming.

Topics covered

  • Output (`document.write`), alerts, prompts and confirms
  • Variables, operators and logical operators
  • Conditional statements and `switch`
  • Loops
  • Functions, function expressions and `return`
  • Recursion
  • Code style and conventions

Technologies

HTML and JavaScript (with a few external `.js` files).

Usage

Open any `JS_*.html` file in a web browser and use the developer console to follow along. The examples run client-side with no dependencies.

Author

Polina Lemenkova
ORCID: https://orcid.org/0000-0002-5759-1089

License

Released under the MIT License (see LICENSE).

Reuse

These materials were written as programming exercises and are shared as open, self-contained teaching examples. If they are useful in your own teaching or research, a link back to this repository and to the author's ORCID is appreciated.