Answer:- B
Reason: Because JavaScript's syntax is loosely based on Java's that's why JavaScript and Java have similar name.