I wrote code for simple weight conversion and an annual profit calculator program asking the user for input. When I run the programs in vscode it displays the error "ReferenceError: prompt is not defined."
var weight_in_lbs = prompt("Please enter the weight in lbs you wish to convert:");
var pound_to_kg = (weight_in_lbs * .45359237);
console.log("The weight converted in kg is" + " " + pound_to_kg.toFixed(3))`
var annualSales = prompt("What is the projected total sales amount?");
var salesPrediction = (annualSales * .23);
console.log ("Your annual profit is " + salesPrediction.toFixed(2)) ;