Posts: 2,536
Location: Western Maryland
|
They are totally different. JavaScript is used primarily as a client-side in-browser scripting language to perform actions without having to return to the server (e.g., rollovers, hiding iframes, etc).
Visual Basic is a compilable programming language by Microsoft. It has a visual layout editor allowing you to build thick clients (aka "desktop applications").
However, VBScript is also a client-side scripting language similar to JavaScript -- but runs well only in IE, so it's not exactly cross-browser friendly and is rarely used for the purpose. It is also used on the server side in languages such as ASP 3.0.
So the choice between VisualBasic and JavaScript is really no choice at all. What you want to learn should be driven by what you are trying to do. If you could describe the task you have at hand, you'll get some better guidance.
HTH.
__________________
—Kyrnt
|