Toy-Neural-Network-JS icon indicating copy to clipboard operation
Toy-Neural-Network-JS copied to clipboard

a beautiful print method + real error throwing/checking

Open arjunpat opened this issue 6 years ago • 1 comments

-refactored errors to JavaScript convention -created a beautiful print method (try it in Google Chrome) -cut down if statements and for statements where brackets weren't needed

arjunpat avatar Jul 02 '18 06:07 arjunpat

Just wanted to let you know that the error checking breaks the circleci test (but it will not people's code — it makes it MORE failsafe against bad inputs. It also removes the need for an empty return statement as throwing errors automatically breaks the program).

I am submitting code that breaks the test because it is usually more conventional to throw errors in javascript (especially errors that could cause the program to go haywire).

Also, it will break the print test because the new print method does not use console.table().

arjunpat avatar Jul 02 '18 06:07 arjunpat