Converting text that is not numeric produces the special number value NaN.
Number.isNaN(value) checks for that failed result.
const amount = Number("many");
console.log(Number.isNaN(amount));The console displays true.
Convert quantityText, store the failure check in conversionFailed, and
display Conversion failed: true.