Time to practice some code!
Create a function named smallestFactor that finds and displays the smallest factor of any number (num).
Then call the function by passing in the value of 100. It should display the number 2 as a result.
Whenever you’re ready to look at my examples please refer to