function verificarStock( cantidad : number) : string {
if( cantidad=== 0){
    return "Alerta: Producto agotado!";
    } else if(cantidad <= 5 ) {
return "Alerta!,quedan pocas unidades";
    } else {
    return "stock suficiente,disponible";
    }

    }
    



    console.log(verificarStock(50))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: