summaryrefslogtreecommitdiff
path: root/examples/test.js
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-12-03 09:30:55 -0500
committermattkae <mattkae@protonmail.com>2022-12-03 09:30:55 -0500
commit355d3e236e1a61986f62ff2df9cc04d281ec1009 (patch)
tree44cd1819de2450e010ac38229f207b05f7853a9b /examples/test.js
parente9f5b484356ef3d91749324252833db9977e7bd5 (diff)
Some better highlighting, org-moder, etc
Diffstat (limited to 'examples/test.js')
-rw-r--r--examples/test.js34
1 files changed, 34 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");
+}