Let me clarify something first, Java and JavaScript are not same , they are 2 completely different and independent programming language and hear we discuss about JavaScript.
Well friend , I love Chrome, but what has been bothering me is that , it hasn't let me view some things that run on JavaScript.Unfortunately, as of the current version of Chrome (v0.4.154.23) there is no way to disable/enable JavaScript as you can do with other browsers by changing a simple setting in its Options panel
but i have a trick or we can say that software or Google Chrome extension known JavaScript tester
just download and install it and than press "Alt+J" then new textarea is added to the bottom of the current page.
In this textarea you can write your JS code and press "Ctrl+Enter", to run the code.
thats it enjoy