How to get element by name in HTML – getElementsByName
The getElementsByName() method is use to get the element by name. However be aware of the getElementsByName() method always return an array as output.
The method always return an array, and we have to use  to access the value.
It will prompt out an undefined value
It will prompt out an expected ‘testing’ value
One more time, there are no getElementByName() exists, it is getElementsByName(), with a ‘s’ :)