Created
March 3, 2022 15:21
-
-
Save Weredime/f9f84e052ebf2095837f6e0d4928d04b to your computer and use it in GitHub Desktop.
Set your name to make your friends take another look on office.com
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
const setName = (name) => document.querySelector("#hero-heading").innerText = `Good ${document.querySelector("#hero-heading").innerText.match(/Good (.*), (.*)/)[1]}, ${name}`; | |
// Example | |
setName("Sus") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment