Skip to content

Tag: javascript

Visual Studio Code: Run node script on save

I use Visual Studio Code (1.8.1) to write ECMAScript 6 for NodeJS 7.3 (so currently no TypeScript). I want to run the current script with node from the command line (node ${file}) every time the script file is saved. Is this possible? To be clear: NodeJS is not running as server, but used for executing cli sc…

Clearing input in vuejs form

Just completed a todolist tutorial. When submitting the form the input field doesn’t clear. After trying both: The input field properly clears but it also deletes the todo. It seems to delete the input field before it has time to push the new todo in the todos.text array. Would love some input guys! Tha…

How to write a simple hello world program in Javascript?

I’ve been looking all over the world. All I see is samples alerting hello world I don’t want to alert hello world. I want to print a simple website saying hello world. Does javascript have a print command? Here are typical samples on the web http://groups.engin.umd.umich.edu/CIS/course.des/cis400/…