[Solved] Which keywords are reserved in JavaScript but not in Java?

Introduction

JavaScript and Java are two of the most popular programming languages in the world. While they share many similarities, there are also some key differences between the two. One of the most important differences is the set of keywords that are reserved in each language. In this article, we will discuss which keywords are reserved in JavaScript but not in Java. We will also discuss the implications of these differences and how they can affect your programming.

Solution

The keywords reserved in JavaScript but not in Java are:

1. let
2. const
3. debugger
4. import
5. export
6. yield
7. await
8. class
9. super
10. extends


This is what I’ve found out so far.

There were seems to be no new keywords in Java since 5.0 (which added enum).

Java vs. ECMAScript 5.1:

  • debugger
  • delete
  • function
  • in
  • typeof
  • var
  • with
  • export
  • let
  • yield

Java vs. ECMAScript 6 Rev 36 Release Candidate 3:

  • all of above
  • await

9

solved Which keywords are reserved in JavaScript but not in Java?