Source Code:
Run test function
Result:
W3Schools.com
- Try it yourself