I was so insistent on console.log because in your first case you would have seen that idade had value of Digite
idade
Digite
like this:
and also in the other case