Compiler write the JAVA bytecode, converting to normal language is JVMs work.
A JAVA Virtual Machine runs your code as well as other people’s JAVA code on your computer. Which makes JAVA a platform independent.
A JVM is written in javascript.
What does the Java Virtual Machine do?
Java Virtual Machine act as interpreter between Java’s run-anywhere bytecode and computer system.
JVM examines bytecode, bit by bit, and process the instructions described in the bytecode.
JVM interprets bytecode for Windows, Mac, Linux, or any types of operating systems.
JVM makes Java programs more portable as compare to any other language.