diff options
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | static/js/main.js | 1 |
2 files changed, 8 insertions, 0 deletions
@@ -40,6 +40,13 @@ We can print the result of any expression with `YOU WON'T WANT TO MISS`. You won YOU WON'T WANT TO MISS 'Hello, World!' ``` +Conversely, we can take (string) input from the user with `LATEST NEWS ON`. This creates a prompt to ask the user of your incredible program about the latest news. + +``` +EXPERTS CLAIM age TO BE + LATEST NEWS ON 'What is your age?' +``` + We define functions with `DISCOVER HOW TO functionName WITH arguments, like, this`. We can call them with the `OF` keyword. ``` diff --git a/static/js/main.js b/static/js/main.js index d09c3c0..6921dfd 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -247,6 +247,7 @@ class App extends Component { <li><code class="inline fixed block">END OF STORY</code> end a block scope</li> <li><code class="inline fixed block">EXPERTS CLAIM...TO BE</code> declare or assign to a variable</li> <li><code class="inline fixed block">YOU WON'T WANT TO MISS</code> print output</li> + <li><code class="inline fixed block">LATEST NEWS ON</code> take user input</li> <li><code class="inline fixed block">TOTALLY RIGHT</code> true</li> <li><code class="inline fixed block">COMPLETELY WRONG</code> false</li> <li><code class="inline fixed block">PLUS / MINUS / TIMES / DIVIDED BY / MODULO</code> the obvious arithmetic operations</li> |