JavaScript coding challenge

Creating class instances

āœØ Your Task

Create an instance of a Person class and assign it to a variable named person.

āœļø JavaScript
šŸ‘‰ Press "Run" and check the result below.
Test cases
Variable named person should be an instance of class Person
The value of person's name attribute should be John

Want to try another challenge?