Skip to content

Commit 6a3a923

Browse files
committed
Add a couple of example JavaScript scripts
1 parent c157e9e commit 6a3a923

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// @String name
2+
// @OUTPUT String greeting
3+
4+
// A JavaScript script with parameters.
5+
// It is the duty of the scripting framework to harvest
6+
// the 'name' parameter from the user, and then display
7+
// the 'greeting' output parameter, based on its type.
8+
9+
greeting = "Hello, " + name + "!";
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// A very simple JavaScript script.
2+
// It is the duty of the scripting framework to display
3+
// the script's return value, based on its type.
4+
5+
"Hello world!";

0 commit comments

Comments
 (0)