Hello guys, this is my own solution and it seems totally different from you guys. What do you think about it?
I am taking my time to study you guys code so I can learn.
Your feedback will be appreciated. Thanks!
let quote = ‘I dO nOT lIke gREen eGgS anD HAM’;
// Add your code here
let fixedQuote = quote.slice(0, 1) + ’ ’ + quote.slice(2).toLowerCase();
fixedQuote = fixedQuote.replace(“green eggs and ham”, “sweet potato”)
let finalQuote = fixedQuote + “.”;
// Don’t edit the code below here!
section.innerHTML = ’ ';
let para1 = document.createElement(‘p’);
para1.textContent = fixedQuote;
let para2 = document.createElement(‘p’);
para2.textContent = finalQuote;
section.appendChild(para1);
section.appendChild(para2);