- created a utility file named
methods.js
with some basic math functionsadd
âž•,sub
âž–,mult
✖, anddiv
➗. - export 📤📤📤 the functions.
- Import 📩📩📩 the functions in my main file named
app.js
.
- created a validation module for validating inputs from users named
validation-module.js
. - installed the packages needed for my functions:-
validator
,prompt-sync
, andcolor
. - created the functions
validEmail
📧 .validPassword
🔑,validAge
🔢,validGender
🧬, andvalidName
🆔 with the required specifications. - export 📤📤📤 the functions.
- import 📩📩📩 the function in the main file
indedx.js
.