This code is supposed to calculate the sum, substract, multiply, divide at the same time when the user types in x and y but it’s showing Nan
function perform(x, y) {
x = prompt("enter first no. ")
y = prompt(" enter second no. ")
function sum(x, y) {
console.log(parseInt(x + y));
}
sum();
function minus(x, y) {
console.log(parseInt(x - y));
}
minus();
function multiply(x, y) {
console.log(parseInt(x * y));
}
multiply();
function divide(x, y) {
console.log(parseInt(x / y));
}
divide();
}