How can I use his direct return on expressions? Because I can only use it if it will open the prompt 2 times.
I want the value, if in the condition, to be what I want, it (value) falls into the direct expression, without having to open the prompt again, understand?
let promptValue = prompt('Valor') > 10 ? 'Valor do prompt aqui' : 'Não';
console.log(promptValue);
As you can see, instead of the "Value of the prompt here" I would only get this value if I for another prompt, but in case I want the value I put in the prompt of the condition. Are you like this?