Why doesn't Codecademy's IDE doesn't support enhanced switch?

Why doesn’t Codecademy’s workspace IDE doesn’t support enhanced switch statements? Is it on purpose?

Enter this statement in main in your workspace,

System.out.println("Current JVM version - " + System.getProperty("java.version"));

It will show the version being used by Codecademy as being 9.0.4

The enhanced switch statements were first added as a preview feature in Java 12, and Java 14 made these changes permanent. (See The Evolution Of Switch Statement From Java 7 to Java 17 | by Java Techie | Medium)

Why doesn’t Codecademy use a more recent JDK?

I don’t know. You will have to ask Codecademy Staff/Support.