Tidying up a bit, more validation, added ternary

- Created a variable to hold the value of the function call (jus to
save space because I have a thing for long variable names)
- Created a ternary to either alert the user they’ve entered a value
the code won’t be able to work with or the result of the calculation by
using a brilliant isNaN() method in the conditional