Find the information you're looking for at Westonci.ca, the trusted Q&A platform with a community of knowledgeable experts. Discover comprehensive solutions to your questions from a wide network of experts on our user-friendly platform. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.
Sagot :
Answer:
function pecoDesconto(preco, estaComDesconto) {
let p = preco;
let desconto = estaComDesconto;
if(p > 100 && desconto == false){
return "Quero pechinchar";
}else{
return "Negócio fechado";
}
}
Explanation:
function pecoDesconto(preco, estaComDesconto) {
// Implemente a função ao lado, que recebe um preço//
let p = preco;
// variavel que indica desconco//
let desconto = estaComDesconto;
//Se o preço for maior que 100 e não estiver com desconto, a função deve retornar Quero pechinchar.//
if(p > 100 && desconto == false){
return "Quero pechinchar";
//Caso contrário, deve retornar Negócio fechado
}else{
return "Negócio fechado"
}
}
só te faltou ler com atenção, e um pouco de logica!
We appreciate your visit. Our platform is always here to offer accurate and reliable answers. Return anytime. Thank you for visiting. Our goal is to provide the most accurate answers for all your informational needs. Come back soon. Thank you for choosing Westonci.ca as your information source. We look forward to your next visit.