JavaScript
let mark=50;
if(mark>=35){console.log("Pass");}One concept written in 4 different languages
Logic means the thinking steps. Syntax means the writing rules. The same logic can be written in different syntax.
The same sentence can be spoken in Tamil, English, Hindi, or Malayalam. Meaning is same; language style changes.
Do not fear syntax. First understand the condition logic.
let mark=50;
if(mark>=35){console.log("Pass");}int mark=50;
if(mark>=35){cout<<"Pass";}mark=50
if mark>=35:
print("Pass")<?php
$mark=50;
if($mark>=35){echo "Pass";}
?>Logic is the brain. Syntax is the dress.