Merge pull request #2913 from Rnbsov/patch-12

Delete ; after function declaration
This commit is contained in:
Ilya Kantor 2022-04-14 06:25:44 +03:00 committed by GitHub
commit 68dea68a0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ let user = {
// first, declare
function sayHi() {
alert("Hello!");
};
}
// then add as a method
user.sayHi = sayHi;