Skip to main content

JavaScript Question 147

Question 147 of 0JavaScript

What's the output?

Login Required

Please login to select answers and solve this question. You can view the question without logging in.

Code:
class Calc {
	constructor() {
		this.count = 0 
	}
	increase() {
		this.count++
	}
}

const calc = new Calc()
new Calc().increase()

console.log(calc.count)

Select the correct option: