It works perfectly, here is the demo and code.
My question is two of my functions,
displayResult, didn’t return any value. Is that valid? If no, how should I improve it.
Thanks in advance.