Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const changeColor = e => {
- const lightOrange = "rgb(221, 238, 255)"
- const lightBlue = "rgb(255, 238, 221)"
- const {style} = document.body
- style.backgroundColor = style.backgroundColor === lightOrange
- ? lightBlue
- : lightOrange
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement