Why this code doesn't get any outputs in p Tag? Please explain it
const inputName = document.getElementById("inputName");
const btnShow = document.getElementById("btnShow");
const pShow = document.getElementById("pShow");
btnShow.addEventListener("click", () => {
const text = inputName.Value;
pShow.textContent = text;
});
console.log(inputName, btnShow, pShow);