JavaScript
if(mark>=35){
console.log("Pass");
}Basic if syntax comparison
All four languages use if to check a condition, but braces, semicolons, and indentation change.
Same classroom rule written on four different notice boards.
Python needs colon and indentation. JS/C++/PHP commonly use braces.
if(mark>=35){
console.log("Pass");
}if(mark>=35){
cout<<"Pass";
}if mark>=35:
print("Pass")<?php
if($mark>=35){
echo "Pass";
}
?>Meaning same. Syntax changes.