This tutorial could not be loaded.
Loading tutorial...
Interactive tutorial
Learn to create and update variables, recognize common JavaScript data types, and use arithmetic, comparison, and logical operators. Practice in your own browser console, avoid common type-conversion mistakes, and finish by calculating a shopping total and checking eligibility for an offer.
Step 1 of 9
3 min
Recognize Values and Display Output
Recognize number, string, and Boolean literals, then use the browser Console to display values and distinguish printed Output from a separate evaluation display.
Step 2 of 9
4 min
Store and Update Values with const and let
Use const for fixed bindings, let for planned updates, and distinguish declarations from later reassignments.
Step 3 of 9
4 min
Inspect Types and Recognize Missing Values
Inspect JavaScript type descriptions and distinguish undefined, null, and undeclared names.
Step 4 of 9
5 min
Calculate with Arithmetic Operators
Build numeric expressions, control grouping with parentheses, and update a changing value with compound assignment.
Step 5 of 9
4 min
Build Strings and Readable Messages
Use `+` for numeric addition or string concatenation, then create a readable shopping message with a template literal.
Step 6 of 9
4 min
Convert Types Deliberately
Convert numeric text intentionally, inspect failed conversions, and avoid surprising results caused by implicit conversion.
Step 7 of 9
4 min
Compare Values and Test Thresholds
Use strict equality and numeric relational operators to compare values and test a shopping threshold precisely.
Step 8 of 9
4 min
Combine Conditions with Logical Operators
Use AND, OR, and NOT to express a shopping-offer rule and evaluate Boolean conditions.
Step 9 of 9
6 min
Apply It All: Shopping Total and Eligibility
Complete and verify an integrated shopping calculation in your own browser Console.
Video Courses
recommended
Ideal for beginners
Ideal for beginners
recommended
Ideal for beginners
Ideal for beginners
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks