summaryrefslogtreecommitdiff
path: root/examples/test.js
blob: 15c71d79bd59d8204a0112e620b936d2cca637b1 (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
/**
   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");
}