Is JavaScript Code Style Similar Java?

I want to learn Java, but I thought, maybe just to get used to the style of writing it, I would learn Javascript, or will that just be a waste of time? Thanks :)
5 answers 5