Skip to content

Commit

Permalink
grammar fix + simpler solution
Browse files Browse the repository at this point in the history
  • Loading branch information
master-lincoln committed Apr 12, 2014
1 parent 1cc65e2 commit 024b8e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spartacus/README.md
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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');
```
```

0 comments on commit 024b8e1

Please sign in to comment.