-
Notifications
You must be signed in to change notification settings - Fork 150
Description
A code in programming means a set of instructions written in a programming language (like HTML, JavaScript, or Python) that a computer can understand and follow.
In simple words:
Code = instructions for a computer
Just like you follow instructions to cook a meal, a computer follows code to do things—like showing a website, adding two numbers, or playing a sound.
Example 1: JavaScript code
alert("Hello, Benjamin!");
📌 This code tells the computer: “Show a message that says ‘Hello, Benjamin!’”
Example 2: HTML code
Welcome to My Website
📌 This code tells the computer: “Show a big heading that says ‘Welcome to My Website’”
Example 3: CSS code
body {
background-color: lightblue;
}
📌 This code tells the computer: “Make the background of the page light blue”
Would you like me to show