If you want to achieve js, every time you click a button, the number of text nodes increases by one, but NAN, appears. What's going on?

want to js every click, constantly add one node, the number of the text node of the node is one more than the number of the text node of the previous node, but how to increase the number of NAN, has used parseInt to convert the string into a number. Maybe the language description is not clear, the specific code:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
     <style>
        *{
            margin: 0;
            padding: 0;
        } 
    </style>
</head>
<body>
    <ul class="oUl">
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
    </ul>
    <input class="oBtn" type="button" value="">
</body>
    <script>
    var oBtn = document.getElementsByTagName("input")[0];
        oBtn.onclick = append;
        function append(){
            var oUl = document.getElementsByTagName("ul")[0];
            var cRlitextnode = parseInt(oUl.lastChild.textNode);
            cRlitextnodePP;
            console.log(cRlitextnode);
            var li = document.createElement("li"); 
            var textNode = document.createTextNode(cRlitextnode);
           
            oUl.appendChild(li);
            li.appendChild(textNode);
        }
    </script>
</html>

I hope you can help with the answer. Thank you.

Mar.12,2021

// 1. `Node.textNode``innerHTML`~
// 2. html`oUl.lastChild`....233parseInt('') = NaN ~~
<ul class="oUl">
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
</ul>

then you can write it like this:

// html
<ul class="oUl">
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li></ul>  // 
// js
var cRlitextnode = oUl.lastChild.innerHTML;

if you don't change html-
or so

var cRlitextnode = oUl.lastElementChild.innerHTML;  // firstElementChild

or better compatible

var cRlitextnode = oUl.children[oUl.children.length - 1].innerHTML;

var oBtn = document.getElementsByTagName("input")[0];
    oBtn.onclick = append;
    function append(){
        var oUl = document.getElementsByTagName("ul")[0];
        var cRlitextnode = parseInt(oUl.lastElementChild.innerText);
        cRlitextnodePP;
        console.log(cRlitextnode);
        var li = document.createElement("li"); 
        var textNode = document.createTextNode(cRlitextnode);
       
        oUl.appendChild(li);
        li.appendChild(textNode);
    }
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e51c9a-448ea.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e51c9a-448ea.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?