Obtenez le dernier élément de Div Javascript
const app = document.getElementById('div');
//assign last child to variable
let app_lastChild = app.lastChild;
//assign text from last child of element
let lastChild_text = app.lastChild.text;
Julio Polycarpo