Skip to content

amare16#5

Open
amare16 wants to merge 2 commits intosimplonco:masterfrom
amare16:master
Open

amare16#5
amare16 wants to merge 2 commits intosimplonco:masterfrom
amare16:master

Conversation

@amare16
Copy link
Copy Markdown

@amare16 amare16 commented Apr 25, 2016

No description provided.

@yvan-sraka yvan-sraka changed the title amare's leap first commit amare16 Apr 25, 2016
Comment thread leap.js Outdated
*/
Year.prototype.isLeap = function () {
//
return ((year % 4 == 0) && (year % 100 !== 0)) || (year % 400 == 0);
Copy link
Copy Markdown
Contributor

@yvan-sraka yvan-sraka Apr 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ReferenceError: year is not defined would say that you use a variable without create it before !
https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/ReferenceError

I advice you to read the comment:

 // (you have to use this.year)

Because I use this.year in my test, which exist in the scope of the Year function 😉 !

@yvan-sraka
Copy link
Copy Markdown
Contributor

CONGRATULATIONS 🎉 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants