Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Rivas-Jorge authored Apr 24, 2023
1 parent 5be4a89 commit 6d92dc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<input type="text" id="thereName" placeholder="enter your name">
<script>
let myName = "jorge";
let myAn = "hello i am" + myName + "what's your name";
let prompt = "hello i am" + myName + "what's your name";
function greet() {
return myAn
return prompt
}
document.getElementById("myButton").addEventListener("click", function(){
alert(greet());
Expand Down

0 comments on commit 6d92dc1

Please sign in to comment.