Certified Associate JavaScript Programmer

OpenEDG JSA Certified Associate JavaScript Programmer (JSA-41-01)

Classes And Class Based ApproachEnglish
Exam overview

Practice session

What does this code log? class Animal { constructor(name) { this.name = name; } speak() { return this.name + ' makes a sound'; } } const a = new Animal('Rex'); console.log(a.speak());

Loading your practice session…