summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/test.js34
-rw-r--r--examples/test.org4
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
+**