summaryrefslogtreecommitdiff
path: root/examples/test.js
blob: e011d4eb5a1e1a4bb89314e3738f0b92a5ae2147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
   Adds to numbers.
   
   @param x {number} The X input
   @param y {number} The Y input
   @returns {number} x + y
*/
function myFunctionHehe(x, y = 10) {
  return x + y
}

myFunctionHehe()
myFunctionHehe()

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");
}