\n\n(i) error\n(ii) BEU_Javascript\n(iii) undefined\n(iv) BEU_Javascript","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"## Answer\n**(ii) `BEU_Javascript`**\n\n### Step-by-step\n1. `txt1` is assigned the string `BEU_`.\n2. `txt2` is assigned the string `Javascript`.\n3. The `+` operator concatenates the two strings.\n4. Therefore, `txt1 + txt2` becomes `BEU_Javascript`.\n5. `innerHTML` places that result inside the element with `id=\"demo\"`.\n\n```javascript\nvar txt1 = \"BEU_\";\nvar txt2 = \"Javascript\";\ndocument.getElementById(\"demo\").innerHTML = txt1 + txt2;\n```\n\n**Final answer: (ii) `BEU_Javascript`**\n\n> Note: Options (ii) and (iv) appear duplicated in the supplied paper; the value is still `BEU_Javascript`. "}}}Back to the 2023 paper
Similar questions
Web TechnologyWhich technology is used for server-side scripting? (i) HTML (ii) CSS (iii) JSP (iv) JavaScript20252mWeb TechnologyJavaScript code is written inside file having extension (i) .jvs (ii) .JavaScript (iii) .js (iv) .jsc20192mWeb TechnologyWhich of the following is the correct syntax to print a page using JavaScript? (i) window.print(); (ii) browser.print(); (iii) navigator.print(); (iv) document.print();20202mWeb TechnologyWhich of the following is a client-side scripting language? (i) PHP (ii) JavaScript (iii) JSP (iv) Servlet20252m