Question: What is the output of the following code?let a=2;
let b=3;
document.write(a**b);
New
A
B
C
D
3
B
5
C
6
D
8
Note: Not available
let a=2; let b=3; document.write(a**b);New
const str = 'Mozilla'; console.log(str.substring(1, 3));New
let x=33.54; let data=x.toString(); console.log(typeof data);New
class ClassWithGetSet { #msg = "hello world"; get msg() { return this.#msg; } set msg(x) { this.#msg = `hello ${x}`; } } const instance = new ClassWithGetSet(); console.log(instance.msg); instance.msg = "cake"; console.log(instance.msg);New
class A { add(a,b){ return a+b; } print() { console.log("class A"); } } class B extends A { print() { console.log("class B"); } sub(a,b){ return a-b; } parentPrint() { super.print(); } }New