Inside the given ul element, there are four li child elements. If the code below is run in the console:
var a = document.getElementsByTagName("ul")[0];
a.childNodes.splice(1, 2, "abc", "cde");
An error will appear with this message:
TypeError: a.childNodes.splice is not a function
Can you identify the issue in this scenario?