sanırım prototype ile ilgili bir sorun valuesinimi alamamış filan hiç anlamadım arkadaşlar bi yardımcı olun

lifeSubmit.addEventListener('click', teveTwo)
function showLifeResult(type) {
const birthYear = lifeText.value.trim()
const deadYear = lifeTextTwo.value.trim()
const nowResult = document.createElement('div')
const trueResult = deadYear - birthYear
nowResult.className = `mt-2 mb-1 alert alert-${type}`
if (birthYear <= 0 || deadYear <= 0 || birthYear === "" || deadYear === "" || birthYear >= 2021 || deadYear >= 2021) {
console.log('hata');
} else {
console.log('sorunyok');
}
}
function teveTwo() {
showLifeResult('primary')
}