Stimes they change the tests for kata.
According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date Parsing of strings with Date.parse is strongly discouraged due to browser differences and inconsistencies. It's better to use constructor Date("date") IMHO. How can I take my voice back for Best Practice?
I tried this and I got an error. Strange.
CW has always this bug, you save it right but CW modifies the first 2 lines. I fixed it and it works now.
TypeScript version does not work:
../home/codewarrior/spec.ts(1,1): error TS1084: Invalid 'reference' directive syntax. ../home/codewarrior/spec.ts(2,1): error TS1084: Invalid 'reference' directive syntax.
Loading collection data...
Stimes they change the tests for kata.
According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
Parsing of strings with Date.parse is strongly discouraged due to browser differences and inconsistencies.
It's better to use constructor Date("date") IMHO.
How can I take my voice back for Best Practice?
I tried this and I got an error. Strange.
CW has always this bug, you save it right but CW modifies the first 2 lines.
I fixed it and it works now.
TypeScript version does not work: