This 'BestPractices' solution doesn't really work as I see :/ It throws an error. We need to change variable 'unite' to method 'unite()'
NOW: unite = () => { this.setState({ united: true }) } SHOULD BE: unite() { this.setState({ united: true }) }
ISN'T IT?
There is no such test in javascript, click reset to refresh the sample tests. Copy your code before doing that and paste it again after.
Or simply change it to this: Test.assertEquals(solution('MDCLXVI'), 1666)
Test.assertEquals(solution('MDCLXVI'), 1666)
Language?
Test #5 is wrong. How to report about this mistake?
Test.assertEquals(solution('XXI'), 21) Test.assertEquals(solution('I'), 1) Test.assertEquals(solution('IV'), 4) Test.assertEquals(solution('MMVIII'), 2008) Test.assertEquals(solution('MMVIII'), 1666)
Loading collection data...
This 'BestPractices' solution doesn't really work as I see :/
It throws an error.
We need to change variable 'unite' to method 'unite()'
NOW:
unite = () => {
this.setState({ united: true })
}
SHOULD BE:
unite() {
this.setState({ united: true })
}
ISN'T IT?
There is no such test in javascript, click reset to refresh the sample tests. Copy your code before doing that and paste it again after.
Or simply change it to this:
Test.assertEquals(solution('MDCLXVI'), 1666)
Language?
Test #5 is wrong. How to report about this mistake?
Test.assertEquals(solution('XXI'), 21)
Test.assertEquals(solution('I'), 1)
Test.assertEquals(solution('IV'), 4)
Test.assertEquals(solution('MMVIII'), 2008)
Test.assertEquals(solution('MMVIII'), 1666)