let finalResult;
let evenOddResult;
// Add your code here
num1 = 4;
num2 = 8;
num3 = 2;
num4 = 6;
res1 = num1 + num2;
res2 = num4 - num3;
finalResult = res1 * res2;
evenOddResult = finalResult % 48;
// Don’t edit the code below here!
section.innerHTML = ’ ';
const para1 = document.createElement(‘p’);
const finalResultCheck = finalResult === 48 ? Yes, well done!
: No, it is ${ finalResult }
;
para1.textContent = Is the finalResult 48? ${ finalResultCheck }
;
const para2 = document.createElement(‘p’);
const evenOddResultCheck = evenOddResult === 0 ? ‘The final result is even!’ : ‘The final result is odd. Hrm.’;
para2.textContent = evenOddResultCheck;
section.appendChild(para1);
section.appendChild(para2);