Constructor
new Foo(num)
Start with a number
Example
// this is how to instantiate
let foo = new Foo(2)
Parameters:
Name | Type | Description |
---|---|---|
num |
* | a number |
Methods
bar(str)
What is the bar of str?
Example
// This is a simple example
let foo = new Foo(1)
let result = foo.bar('hi')
// <= "hi1"
Parameters:
Name | Type | Description |
---|---|---|
str |
* |
reset(num)
Resets this.num
Example
let foo = new Foo(1)
foo.reset(1)
Parameters:
Name | Type | Description |
---|---|---|
num |
* |