Problem with coding

In btw html/ javascript course, i wasn’t able to get my name as output, (in the section where click on the below button to display your name)
I didnt yet recognised what is the mistake
(See this as raw…while displaying my codes are not seen… please see as raw not html)

First javascript file
(Saved as abcd.js)

function myFunction(my Name) {

var elem = document.getElementById(“hello”);
elem.innerHTML = elem.innerHTML + myName;

}

Now abcde.html file

JAVASCRIPT

click on the below to show my name

SHOW MY NAME

HELLO WORLD, I AM:

please share your code

In the following code of yours, in the function definition your parameter is “my Name” , but the variable used in the 2nd line inside function is “myName”.
there is space between ‘my’ and ‘Name’ at one place but its not there in the other.

First javascript file
(Saved as abcd.js)

function myFunction(myName) {

var elem = document.getElementById(“hello”);
elem.innerHTML = elem.innerHTML + myName;

}

Now abcde.html file

JAVASCRIPT

click on the below to show my name

SHOW MY NAME

HELLO WORLD, I AM:

It was myName itself, it occured due to google lens. Already the code had myName as correct.

Problem solved thank you sir… it was a spelling mastake in html

please copy paste your html code so that I can know where you have gone wrong.