A simple function for validating 10-digit ISBNs written in VueJs
- if user inputs 8535902775 then it should print "8535902775 is Valid".
- if user inputs 1843369283 then it should print "1843369283 is Not Valid".
- if user inputs 8-535-902-775 then it should print "8-535-902-775 is Valid".
- if user inputs 1-843-369-283 then it should print "1-843-369-283 is Not Valid".
- if user inputs 1-000-000-001 then it should print "1-000-000-001 is Valid".
Note:
- "Valid" must be text color Green.
- "Not Valid" must be text color red.
Be aware of dash "-" symbol.
* clone
* open cmd (if windows)
* locate the directory
* npm install
* npm run dev
Test