enkidevs / commit

:chart_with_upwards_trend: Level up your dev skills every day.

Home Page:https://enki.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues in workouts

artemgurzhii opened this issue · comments

If I have find problem in the daily workout, where should I open issue?

What kind of issue is it?

Todays JS workout: Getting the real dimensions of an image

myImg.addEventListener('onload',  function() {
    console.log('Width: ', this.naturalWidth);
    console.log('Height: ', this.naturalHeight);
});

should be

myImg.addEventListener('load',  function() {
    console.log('Width: ', this.naturalWidth);
    console.log('Height: ', this.naturalHeight);
});

or

myImg.onload = function() {
    console.log('Width: ', this.naturalWidth);
    console.log('Height: ', this.naturalHeight);
};

Also, I have seen some other issues but didn't know where should I open issue. Do you have specific repository for that?

No we don't really have a repo for content related issues yet. Feel free to open them here and ping @loopiezlol

If it's a product feature/bug, we are using product pain

@artemgurzhii Thanks a bunch for spotting this issue. I have updated the insight accordingly.