Sigma interview question

Difference between java and JavaScript: