03/06/2025
π Post 3: Learn Your First Programming Language β JavaScript
πΉ Series: Learn Software Engineering from Scratch
π¨βπ» Letβs Write Code for the First Time!
Now that you understand what a computer is and how programming works, itβs time to pick a language β and weβre starting with JavaScript.
π¨ Why JavaScript?
π It runs in all web browsers β no installation needed.
π§ Easy to learn for beginners.
β‘ Can be used for frontend (web design), backend (server-side), mobile apps, and even games.
πΌ High demand in the job market.
π οΈ What is JavaScript?
JavaScript is a programming language used to add life to websites. Without it, websites would just be plain text and images. With JavaScript, you can:
Make things move β¨
Add buttons that do something when clicked β
Show pop-up messages π’
π¬ Your First JavaScript Code
Hereβs your first ever line of code! Open your browser, right-click β Inspect β go to the Console tab, then type:
console.log("Hello, world!");
β
You just told your computer to print a message.
π§ What Did You Just Do?
console.log() is a command.
"Hello, world!" is a message (a string of text).
The semicolon ; ends the command.
π Mini Task:
Go to this free website: https://jsfiddle.net
Try this:
alert("Welcome to the Software Engineering Journey!");
It will pop up a message on your screen π
πNext Post: How to Save and Run JavaScript in a Real Web Page
This is where weβll start building simple web pages with HTML + JavaScript!
π¬ Comment βπβ if you just ran your first line of code!
JSFiddle - Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle.