scrimba
Основы JavaScript
Создание первого класса на ES5
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Создание первого класса на ES5
AboutCommentsNotes
Создание первого класса на ES5
Expand for more info
index.js
run
preview
console
class Pet {
constructor(animal, age, breed, sound) {
this.animal = animal;
this.age = age;
this.breed = breed;
this.sound = sound;
}
}

const ernie = new Pet('dog', 1, 'pug');
Console
index.html
-2:37