Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Script Host and JavaScript; I think I'm missing something blatantly obvious

Tags:

javascript

wsh

I'm stuck on a "Hello World" program.

Not even kidding.

alert("Hello World");

I have searched, and I can't find any reason this wouldn't execute in WSH, but it won't; I'm assuming I've screwed up unbelievably moronically.

Related question, are there any good JavaScript tutorials which deal with WSH rather than browsers?

like image 667
user2113849 Avatar asked Jan 30 '26 00:01

user2113849


1 Answers

Hello World in WSH is:

WSH.Echo("Hello world");
WSH.Quit();

Honestly, I would try to learn Javascript in a more traditional environment, like a browser or Javascript console, and then take what you know over to WSH. Here's an overview of WSH that will get you started, though. http://www.pctools.com/guides/article/id/2/

like image 158
MattDiamant Avatar answered Feb 01 '26 13:02

MattDiamant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!