logo

Crowdly

Browser

Add to Chrome

Що виведе цей код? class Temperature { #celsius; constructor(c) { this.#...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Що виведе цей код?
 class Temperature {

#celsius;

constructor(c) { this.#celsius = c; }

get fahrenheit() {

return this.#celsius \* 9/5 + 32;

}

set fahrenheit(f) {

this.#celsius = (f - 32) \* 5/9;

}

}

const t = new Temperature(0);

console.log(t.fahrenheit);

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on elr.tnpu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome