This assignment was about understanding how methods are functions that are capable of operating on objects, in that we can in concel all functionality in single object with methods to perfomr specific tasks like validation, calculatin and output.
Futhermore, the assignment required us to familirze ourseleve with built in javascript objects such as Math.round() and Math.srt() to perform calculations
Please see this assignment Below
So in this assignment we tasked with building a tool that could search and calculate the number of occurances of spefic letter or number in the text.
The user can type or paste some string of data and the script should be able to search the inputed data using ChartAt()requiring manuel iteration character by character
Lastly Part 3 of this assigment focuses on input validation with a strict format like a phone number
The primary javascript object used is RegExp for validation and form handling.
The gist of this validator is simply this that once the user inputs a phone number, the script should validate the user input to using regular expression to a specific format of entry.
If the format matches then the a success message is displayed and if it does not then an error message is displayped.