JavaScript
console.log("Hello World");What is programming? Why many languages use same logic?
Programming means giving clear step-by-step instructions to a computer. The language may change, but the logic used to solve the problem usually stays the same.
Like a teacher giving instructions to students: open the notebook, write the date, solve the sum. A computer also follows instructions one by one.
Do not memorize code without understanding the steps behind it.
console.log("Hello World");#include <iostream>
using namespace std;
int main(){
cout << "Hello World";
return 0;
}print("Hello World")<?php echo "Hello World"; ?>Programming = Problem + Logic + Language.