Skip to content
💻

Programming Basics

14 exercises

Start from zero. Learn what programming is, how code works, and the core concepts every developer needs.

  1. 1

    Variable Declaration Quiz

    Test your understanding of variable declaration keywords in modern JavaScript.

    Multiple ChoiceBeginner
  2. 2

    Declare a Constant Practice

    Practice using the correct keyword to declare a constant variable.

    Fill in the BlankBeginner
  3. 3

    Identify the Data Type

    Practice recognizing common data types used in programming languages.

    Multiple ChoiceBeginner
  4. 4

    Predict the typeof Output

    Predict what the JavaScript typeof operator returns for a string value.

    Predict OutputEasy
  5. 5

    Understanding Functions

    Check your conceptual understanding of what a function is in programming.

    Concept CheckBeginner
  6. 6

    Spot the Function Syntax Error

    Find and fix a common syntax error in a JavaScript function declaration.

    Find the MistakeEasy
  7. 7

    Equality Operator Quiz

    Test your understanding of the equality comparison operator used in most programming languages.

    Multiple ChoiceBeginner
  8. 8

    Predict the if/else Output

    Predict which branch of an if/else statement runs based on a condition.

    Predict OutputBeginner
  9. 9

    Predict the for Loop Output

    Predict the final value of a counter after a for loop completes.

    Predict OutputBeginner
  10. 10

    Spot the Loop Mistake

    Find a common off-by-one error in a for loop that should print three times.

    Find the MistakeEasy
  11. 11

    Array Indexing Quiz

    Test your understanding of how array indexing works (zero-based).

    Multiple ChoiceBeginner
  12. 12

    Predict Array Access

    Predict the value returned by accessing an array element by index.

    Predict OutputBeginner
  13. 13

    Object Property Access Quiz

    Test your understanding of how to access a property on an object using dot notation.

    Multiple ChoiceBeginner
  14. 14

    What Is an Object?

    Check your conceptual understanding of what an object is in programming.

    Concept CheckBeginner

Build real projects

Apply what you learned by building guided projects with starter code and solutions.

View projects