can javascript do the same as java code example Example: is java and javascript the same Absolutely not. They are just like car and carpet.