diff options
author | mattkae <mattkae@protonmail.com> | 2022-12-03 09:30:55 -0500 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-12-03 09:30:55 -0500 |
commit | 355d3e236e1a61986f62ff2df9cc04d281ec1009 (patch) | |
tree | 44cd1819de2450e010ac38229f207b05f7853a9b /examples | |
parent | e9f5b484356ef3d91749324252833db9977e7bd5 (diff) |
Some better highlighting, org-moder, etc
Diffstat (limited to 'examples')
-rw-r--r-- | examples/test.js | 34 | ||||
-rw-r--r-- | examples/test.org | 4 |
2 files changed, 38 insertions, 0 deletions
diff --git a/examples/test.js b/examples/test.js new file mode 100644 index 0000000..15c71d7 --- /dev/null +++ b/examples/test.js @@ -0,0 +1,34 @@ +/** + Adds to numbers. + + @param x {number} The X input + @param y {number} The Y input + @returns {number} x + y +*/ +function myFunction(x, y = 10) { + return x + y +} + +myFunction() +myFunction() + +class MyBigClass { + constructor(pValue) { + this.mValue = pValue; + } + + getValue() { + return this.mValue; + } + + setValue(pValue) { + this.mValue = pValue; + } +} + +const c = new MyBigClass(10); +c.setValue(11); + +for (let index = 0; index < 30; index++) { + console.log("Here"); +} diff --git a/examples/test.org b/examples/test.org new file mode 100644 index 0000000..c7dc3ea --- /dev/null +++ b/examples/test.org @@ -0,0 +1,4 @@ +* Org +- Hello world +- This is my list +** |