๐๐ฎ๐ ๐ฎ๐ฌ - ๐ฒ๐น๐ฒ๐บ๐ฒ๐ป๐.๐ถ๐ป๐ป๐ฒ๐ฟ๐๐ง๐ ๐
Hello everyone! It is day 20 of the 100 days of code challenge. Weโre 1/5 of the way there! For the next couple of days, I will be tackling some important JavaScript element content manipulation properties we can use to dynamically change the content of our HTML elements.
Today, I will be talking about .๐ถ๐ป๐ป๐ฒ๐ฟ๐๐ง๐ ๐. As the name implies, . ๐ถ๐ป๐ป๐ฒ๐ฟ๐๐ง๐ ๐ allows us to alter the HTML inside of our element. Remember when we recently talked about template literals? Well, .innerHTML is vital in order for us to take advantage of interpolation and insert variable values into our element content. To help explain it better, I have provided an image that explains what .innerHTML can do and how it is used.