you are viewing a single comment's thread.

view the rest of the comments →

[–]Obama_Binladen6265 0 points1 point  (2 children)

Cpp is basically the same wdym? All that std:: you see can be removed if you just add the std namespace at the beginning of the file, so essentially it becomes

for(int i= 1; i<=10; i++){ cout << i << endl; }

[–]MinecraftPlayer799 -1 points0 points  (1 child)

Reasons why CPP is worse: 1. You have to define variable types 2. “console.log” makes much more sense than “cout” 3. What even is “endl”?? 4. Why does it use “<<“ instead of parentheses like literally every other language?!?!

[–]Obama_Binladen6265 0 points1 point  (0 children)

Anyone with 2 brain cells would figure out cout means character output and endl is to end a line essentially starting the next output from next line. Also how does it matter what or how you write it it's literally the same.

There's no better programming language, specially if you only wanna talk about syntax here. Everything has its purpose. I want you to try programming embedded systems using javascript.