diff --git a/even_odd/README.md b/even_odd/README.md index d748827..0584aa2 100644 --- a/even_odd/README.md +++ b/even_odd/README.md @@ -2,7 +2,7 @@ We have the following code that should return only the odd numbers in reverse order that are in values... -``` +```js (function() { var values = [3, 8, '15', Number.MAX_VALUE, Infinity, -23], oddValues = [], @@ -21,11 +21,11 @@ We have the following code that should return only the odd numbers in reverse or }()); ``` -...but when this code is executed we get [-23, Infinity, "15", 3]. +...but when this code is executed we get ``[-23, Infinity, "15", 3]``. -Ah! Maybe Number.MAX_VALUE is a even number then why not deduct 1 and check it again? +Ah! Maybe Number.MAX_VALUE is a even number then why not substract 1 and check it again? -``` +```js (function() { var values = [3, 8, '15', (Number.MAX_VALUE -1), Infinity, -23], oddValues = [], @@ -43,7 +43,7 @@ Ah! Maybe Number.MAX_VALUE is a even number then why not deduct 1 and check it a console.log( oddValues ); }()); ``` -...but when this code is executed I get [-23, Infinity, "15", 3] again. +...but when this code is executed we get ``[-23, Infinity, "15", 3]`` again. --- Please explain why Number.MAX_VALUE has not been added: diff --git a/frozen/README.md b/frozen/README.md index 347a70f..56dd4bf 100644 --- a/frozen/README.md +++ b/frozen/README.md @@ -2,9 +2,9 @@ This challenge will need a bit of knowledge of one of the new features in Javascript 1.8.5, this feature is Object.freeze to get the correct result. --- -Assume: +Note: * You can use anything of ECMASCRIPT 5 but not DOM or BOM, just Javascript -* There are more than one answer but only the most simple will win. +* There is more than one answer but only the most simple will win. Here you have the code to be fixed: ```js @@ -39,4 +39,4 @@ var result = dog.talk(); assert( result === 'Bark!'); ``` ---- \ No newline at end of file +--- diff --git a/json/README.md b/json/README.md index 06ecb40..a5195b5 100644 --- a/json/README.md +++ b/json/README.md @@ -15,7 +15,7 @@ console.log( parentStringified === '{ "name": "peter", "surname": "doe" }'); --- -Write the code needed to get the expected result without change obj.name and obj.surname values: +Write the code needed to get the expected result without changing the values of ``obj.name`` and ``obj.surname`` values: ```js var obj = { diff --git a/spartacus/README.md b/spartacus/README.md index c2c0c79..81a97be 100644 --- a/spartacus/README.md +++ b/spartacus/README.md @@ -1,5 +1,5 @@ # Spartacus -I like so much Spartacus TV Series so that I have written the following code to get the name of the different seasons but something goes wrong... +I like the TV series Spartacus so much, that I have written the following code to get the name of the different seasons but something goes wrong... ``` var season = 'first'; @@ -17,10 +17,9 @@ var result = ('Spartacus: ' + season === 'first' ? 'Blood and Sand' : 'Gods of t ```js var season = 'first'; -var result = ('Spartacus: ' + - ((season === 'first') ? 'Blood and Sand' : 'Gods of the Arena') ); +var result = 'Spartacus: ' + (season === 'first' ? 'Blood and Sand' : 'Gods of the Arena'); ``` ```js assert(result === 'Spartacus: Blood and Sand'); -``` \ No newline at end of file +``` diff --git a/terminator/README.md b/terminator/README.md index 6635505..c64bcd2 100644 --- a/terminator/README.md +++ b/terminator/README.md @@ -15,7 +15,7 @@ Here you have the prototype code of the next Terminator fan page: ``` -One of my colleagues have written the next code that will log the name we send using the form in the previous page. +One of my colleagues has written the next code that will log the name we send using the form in the previous page. ``` ``` -But then someone sent the next message as a name and the behaviour of the page has changed... +But then someone sends the next message as a name and the behaviour of the page changes... ``` '