Salvador Dali fun facts screenshot

I used getElementsByTagName to find the <td> element and an if statement to change the text color from white to black. I checked the td child node length to turn the button color to grey when the last fact is revealed.


Platform:

Typescript React

Check it Out:


Salvador Dalí Fun Facts

He was friends with one of my favorite musical artists, Alice Cooper
We were both born on May 11th
(Only I was born the same month / year javascript was developed)
He had an ocelot named Babou
Dalí and his wife lived in America for 8 years
His trademark mustache was still intact, since his death in 1989, when his body was exhumed in 2017
Triangle Outline

Located in East TN
Available wherever you need me

Github Octocat icon
Linkedin Icon