A red line came up after I typed the function parameters showing that there is an error in what I typed
function myFunction(x1 + x2){
document.getElementById('func').innerHTML= 'hello world'
}
myFunction(2, 3);
<p id="func"></p>
this is my code snipet. I was expecting to get the sum of 2 and 3, which is 5. but the code is not working