0

I need help with an uncaught ReferenceError

Uncaught ReferenceError: Myfuction is not defined Line: 44 44 for (i=1; i<=5; i++) { 45 document.write(i + "<br />"); 46 } 47 48 function MyFunction(param1,param2) { 49 document.write(param1+param2) 50 } 51 52 Myfuction("My","Function"); What is the problem and how do I fix it?

1st Mar 2019, 1:40 AM
Miscellaneous
Miscellaneous - avatar
1 Antwort
+ 5
Line 48 - 49: function MyFunction() Line 52: MyFuction() --> should be MyFunction(), right?
1st Mar 2019, 1:47 AM
Denise Roßberg
Denise Roßberg - avatar