I've created a class in Typescript. When I am trying to convert this into js and run using command prompt, I am not getting desired output. Here is my class
class myclass{
j: number;
constructor(k: number){
this.j = k;
}
value (){
return("the number is "+this.j)
}
}
let myobj = new myclass(10)
console.log(myobj.value) .
Can u suggest what's not working in this.?
myobj.value()parenthesis missing ?