Blog Posts Icon Blog Posts About Icon About Contact Icon Contact

Hi! Type about, contact, or projects for more information. If you feel lost, type help.

client@TMD:~$

How to Start Coding (in less than 2 minutes)

How to Start Coding (in less than 2 minutes) Lesson Image Card

Have you ever wanted to start coding, but don’t know where to start? Don’t fret, let me show you a quick and easy way to get started in a couple steps.

  1. Get a Computer or Laptop
    If you are browsing this page in a smartphone or tablet, you need to turn on your computer or laptop.

  2. Open your Browser (Chrome, Firefox or Safari)

  3. Right click anywhere within the new browser window

  4. Click the Inspect Button
    A section will appear either at the right or bottom side of the screen.

  5. On top of the new bar, click on Console
    This is the place that you’re going to start coding and it will interpret your commands.

  6. Type

    console.log('Hey, Universe!');

    and hit the Enter or Return key on your keyboard
    Make sure you type it exactly like that.

  7. You should see a new line right below the one you typed with the words: Hey, Universe!
    If you don’t see it make sure you followed all the previous steps accurately.

  8. Congratulations! You wrote your first line of code in a language called JavaScript!


This is just the beginning. You can do more stuff with that single command!
  1. console.log(3 + 5);
    This will output as 8 in the console.
    You can also substitute + for:
    Subtraction with -
    Multiplication with *
    Division with /
    And other Math commands
  2. console.log('Hey' + 'yo');
    This will output as Heyyo in the console.
    The words are joined together as one, if you want spaces just add one inside the quotation marks.
  3. console.log(testVariable);
    If you create a variable before this command, like the following
    var testVariable = 'hey';
    console.log(testVariable);
    You can pass the value of a variable to be called in and output on the console.

And that’s only one command! There are many more to come that can power you to create your own application!

If you want to keep learning more, check out more of coding guides.

Share this Post:
Share Post on Whatsapp Share Post on Twitter Share Post on Facebook