Program #3 – write a java script program to count the number of words in a given string

Please ensure to complete this program in the given workbook(SmartTester workbook).