Created
January 19, 2021 08:32
-
-
Save colabottles/e8d943511e3dac22bed01204a64b968a to your computer and use it in GitHub Desktop.
JavaScript code snippet example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updateName() { | |
let name = prompt('Enter a new name'); | |
para.textContent = 'Player 1: ' + name; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment