diff --git a/app/examples/addition.recho.js b/app/examples/addition.recho.js new file mode 100644 index 0000000..97a0d4d --- /dev/null +++ b/app/examples/addition.recho.js @@ -0,0 +1,27 @@ +/** + * @title Addition + * @author Bairui Su + * @created 2025-09-26 + * @pull_request 124 + * @github pearmini + * @thumbnail_start 17 + */ + +/** + * ============================================================================ + * = Addition = + * ============================================================================ + * + * This example shows Recho's core feature: inline echoing. You can `echo` a + * value directly at the point of definition or anywhere in your code. + */ + +const a = 1; + +//➜ 2 +const b = echo(a + 1); + +const c = a + b; + +//➜ 3 +echo(c); \ No newline at end of file