summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Lee <linus@thesephist.com>2020-10-25 13:08:19 -0400
committerLinus Lee <linus@thesephist.com>2020-10-25 13:08:19 -0400
commit6a7db90a83308b2d035af647444a7c6014429ebc (patch)
tree737d2511caf5289866851f69605452b9a2f133e4
parent25bc958e04878195347d27ecb7fe074dc3895911 (diff)
downloadtabloid-fake-closure-6a7db90a83308b2d035af647444a7c6014429ebc.tar.gz
tabloid-fake-closure-6a7db90a83308b2d035af647444a7c6014429ebc.zip
Add LATEST NEWS ON keyword to readme + documentation
-rw-r--r--README.md7
-rw-r--r--static/js/main.js1
2 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3ee3d03..50c4495 100644
--- a/README.md
+++ b/README.md
@@ -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>