Open TonyGoodDay2 opened 7 years ago
1) Write a JavaScript function that accepts a string as a parameter and find the longest word within the string.
Example string : 'Web Development Tutorial' Expected Output : 'Development'
2) Show this on a simple HTML page.
1) Write a JavaScript function that accepts a string as a parameter and find the longest word within the string.
Example string : 'Web Development Tutorial' Expected Output : 'Development'
2) Show this on a simple HTML page.