Learn how browser consoles are built in everywhere. Also, explore Node, REPL in editors, CodePen, and more.
Let's try typing two plus two. We get back four. It works just the same for our purposes, and if this is the direction you plan to take in your journey with language, you might as well install it and start playing with it here instead of in a browser. One nice thing about node, is that it detects when something you're typing could extend to multiple lines, the way we normally would write it. So if I start defining a function, let's call this function myFunction. I know you don't know what this means yet, but just bear with me. Normally at this point I would hit return, and if I were typing this in a browser console, I'd probably get a syntax error because it's on one line and I need more.
- Using a text editor
- Declaring and assigning variables
- Booleans and the quest for truth
- Working with objects and arrays
- Using operators and control structures
- Iterating with loops
- Objects, references, and functions
- Promises, async, and await