- Strings and Numbers: Basic and advanced ways to work with text and numbers.
- Arrays and Objects: How to store and mess around with data.
- Functions and Classes: Learn how to write reusable code.
- Promises and Async/Await: Learn how to handle things that take time, like API calls.
- Error Handling and Debugging: How to find and fix bugs.
- Prototypes and Inheritance: Get into the object-oriented stuff.
- Design Patterns: Understand common design patterns to write clean and maintainable code.
- Anti-Patterns and Best Practices: Learn what not to do and how to write more efficient code.
Each article takes about 5-15 minutes to read, and spare at least 20 minutes for exercises after each.
// Declaring a variable named 'greeting' and assigning it a string value let greeting = "Hello, World!"; // Logging the value of the variable to the console console.log(greeting);
When you run this code, you'll see the output
Hello, World! displayed.
- The Browser: Open the browser, press
F12, paste the code into the console, and hit enter.
- Node, Bun or Deno: Save the code into a file, say
example.js, and run it using
deno run example.jsor
bun run example.jsrespectively.