Multiple choice javascript

Which of the following languages will you consider as being similar to JavaScript?

  1. C

  2. C++

  3. Pascal

  4. PHP

  5. Either A & C

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

JavaScript's syntax shares C-like characteristics with C (curly braces, operators) and Pascal (block structure, some statement keywords). C++ adds OOP concepts not intrinsic to core JavaScript, and PHP is server-side with different paradigms.