I’m pretty new to this forum platform and I’m still figuring out it’s features.
I just stumbled across a trick we can use to put code (or anything) in a spoiler block.
The markdown for it is this [.details="Some Label"]Text you want to hide[/details] (remove the ‘.’ from the first details tag – I only added that to write it without it rendering the block!)
var sally = new Person(“Sally Bowles” , 39);
var holden = new Person(“Holden Caulfield” , 16);
console.log("sally’s species is " + sally.species + " and she is " + sally.age );
console.log("holden’s species is " + holden.species + " and he is " + holden.age );
Can anyu one explain how the function is playing role here in depth…