JavaScript has no relation with Java. It was initially named as LiveScript. It has been compliance with ECMAScript 5 Language Specifications. Just keep in mind, both Java and JavaScript are different animals.