Learning JavaScript
A gentle introduction to JavaScript in Node, with small modules for syntax, output, variables, text, math, input, decisions, arrays, loops, and a story builder.
Learning JavaScript
Welcome to Learning JavaScript.
This course is a beginner-friendly introduction to JavaScript running in Node. You do not need to know anything about coding before starting.
Each module has two main files:
README.md: the lesson instructionsindex.js: the JavaScript file you will run and edit
The best way to learn is simple:
- Open the module folder.
- Read the
README.md. - Open
index.js. - Run the code.
- Change something small.
- Run it again and notice what changed.
Table of Contents
- What you will learn
- How to use this course
- How to run a module
- Modules overview
- Final project
- Tips for learning
- Wrap up
What you will learn
By the end of this course, you will have practiced:
- how to run your first JavaScript program
- how to read the shape of JavaScript code
- how to show messages in the console
- how to store values in variables
- how to work with text
- how to use numbers and simple math
- how to ask the user questions
- how to make decisions
- how to store groups of values and repeat code
- how to build a small interactive story builder
- building a small final project
That is a real foundation.
How to use this course
Start with Module 1 and go in order. Each module builds on the one before it. Try not to rush.
How to run a module
Open the terminal from the learning-javascript folder.
Then run a module like this:
node 01_welcome_to_javascript
For another module, change the folder name.
Modules overview
Module 1: Welcome to JavaScript
You will run your first JavaScript program.
This module focuses on one small idea so you can run it, change it, and understand what happened.
Module 2: JavaScript Syntax
You will read the shape of JavaScript code.
This module focuses on one small idea so you can run it, change it, and understand what happened.
Module 3: Printing and Output
You will show messages in the console.
This module focuses on one small idea so you can run it, change it, and understand what happened.
Module 4: Variables
You will store values in variables.
This module focuses on one small idea so you can run it, change it, and understand what happened.
Module 5: Strings
You will work with text.
This module focuses on one small idea so you can run it, change it, and understand what happened.
Module 6: Numbers and Math
You will use numbers and simple math.
This module focuses on one small idea so you can run it, change it, and understand what happened.
Module 7: Input
You will ask the user questions.
This module focuses on one small idea so you can run it, change it, and understand what happened.
Module 8: Conditionals
You will make decisions.
This module focuses on one small idea so you can run it, change it, and understand what happened.
Module 9: Arrays and Loops
You will store groups of values and repeat code.
This module focuses on one small idea so you can run it, change it, and understand what happened.
Final Project: Story Builder
You will build a small interactive story builder.
This module focuses on one small idea so you can run it, change it, and understand what happened.
Final project
Final Project: Story Builder
At the end of the course, you will build a small story builder. It asks questions, stores answers, makes a few decisions, and prints a custom story.
Tips for learning
Run the code often. Change one thing at a time. If an error appears, read the line number and check small details first.
Wrap up
This course starts small on purpose. By the end, you build a program that combines input, variables, conditionals, arrays, loops, and functions.