View Full Version : javascript console

02-04-2004, 06:08 PM
Hey guys,

I use netscape browser at times. I always see this "javascript console" and "java console" and wondered what that is all about. Is it to debug and check for errors ? Please let me know, I can't help myself because it's mind-boggling. It just totally blows my mind. Thanks


P.S. I love JavaScript

02-04-2004, 06:38 PM
The Java Console is an interface to the Java Runtime Environment/Virtual Machine. I don't know especially much else about it.

The JavaScript Console is both a script execution tool (it has a simple textbox commandline, nothing fancy), a JavaScript Error/Warning/Notice panel, and a general error panel. For example, you will see an error reported in if each time a webpage in Standards compliant mode tries to load a CSS file that is not sent as "text/css".

Opera also has a JavaScript Console, though in their case it only reports JavaScript errors.

02-04-2004, 07:36 PM

But may I use it to debug javascripts and java applets ?
Imagine, copy and paste any code any try to debug cetrain scripts and applets. Can I?

02-04-2004, 08:09 PM
Well, not that way you seem to want to do it. Java is compiled. JavaScript (which, for the record, is an entirely different language than Java) on the other hand is interpreted. However, it doesn't allow script editing, only simple command execution and Error and Warning notification.

02-04-2004, 09:19 PM
I know Javascript and Java are two complete different languages. In fact, I heard java is a more powerful language than Javascrpt. However, is it posible for me to edit java applets in the .class files ? Just like I edit my own javascripts but imagine being able to do so with java applets. Please let me know.


Andres Losada

P.S. I love JavaScript

02-04-2004, 09:33 PM
Nope. Java is bytecode compiled, and the .class file is the compiled code. If you want to edit Java code you need to edit the source and recompile the .class file. (There are Java bytecode-->Java compilers, but I don't think you'd want to use them.)

That Java is a more powerful language than JavaScript is debatable. I would say it is a more efficient but less powerful language. How powerful a language is depends on the core features of the language, and JavaScript has a very powerful core syntax. Sure, it's no Ruby, Python or Scheme, but it's powerful nonetheless. Java is a lower level language compared to them, and that can be seen in that you have to enter far more code to do things that take only a very few lines of code in either of them.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum