I have a string variable and I want to know if the multiplication symbol is in the string. This is what I did:
const str = "45*33"
const arr = str.split('')
if(arr.includes("*"){
console.log("Symbol found!")
}
else{
console.log("Error")
})
This does not work, is there a way I can make this work?