Use JavaScript to Change Text
This example writes "Hello JavaScript!" into an HTML element with id="demo":
{"ScriptPreparationCode":null,"TestCases":[{"Name":"multipleNew","Code":"const number = 123456.789;\r\ndocument.getElementById(\u0022demo1\u0022).innerHTML = \u0022Amount: \u0022 \u002B new Intl.NumberFormat(\u0027fr-CA\u0027, { style: \u0027currency\u0027, currency: \u0027CAD\u0027 }).format(number);\r\ndocument.getElementById(\u0022demo2\u0022).innerHTML = \u0022Amount: \u0022 \u002B new Intl.NumberFormat(\u0027fr-CA\u0027, { style: \u0027currency\u0027, currency: \u0027CAD\u0027 }).format(number);\r\ndocument.getElementById(\u0022demo3\u0022).innerHTML = \u0022Amount: \u0022 \u002B new Intl.NumberFormat(\u0027fr-CA\u0027, { style: \u0027currency\u0027, currency: \u0027CAD\u0027 }).format(number);\r\ndocument.getElementById(\u0022demo4\u0022).innerHTML = \u0022Amount: \u0022 \u002B new Intl.NumberFormat(\u0027fr-CA\u0027, { style: \u0027currency\u0027, currency: \u0027CAD\u0027 }).format(number);\r\ndocument.getElementById(\u0022demo5\u0022).innerHTML = \u0022Amount: \u0022 \u002B new Intl.NumberFormat(\u0027fr-CA\u0027, { style: \u0027currency\u0027, currency: \u0027CAD\u0027 }).format(number);\r\ndocument.getElementById(\u0022demo6\u0022).innerHTML = \u0022Amount: \u0022 \u002B new Intl.NumberFormat(\u0027fr-CA\u0027, { style: \u0027currency\u0027, currency: \u0027CAD\u0027 }).format(number);\r\ndocument.getElementById(\u0022demo7\u0022).innerHTML = \u0022Amount: \u0022 \u002B new Intl.NumberFormat(\u0027fr-CA\u0027, { style: \u0027currency\u0027, currency: \u0027CAD\u0027 }).format(number);\r\ndocument.getElementById(\u0022demo8\u0022).innerHTML = \u0022Amount: \u0022 \u002B new Intl.NumberFormat(\u0027fr-CA\u0027, { style: \u0027currency\u0027, currency: \u0027CAD\u0027 }).format(number);\r\ndocument.getElementById(\u0022demo9\u0022).innerHTML = \u0022Amount: \u0022 \u002B new Intl.NumberFormat(\u0027fr-CA\u0027, { style: \u0027currency\u0027, currency: \u0027CAD\u0027 }).format(number);","IsDeferred":false},{"Name":"OneNew","Code":"const number = 123456.789;\r\nconst format = new Intl.NumberFormat(\u0027fr-CA\u0027, { style: \u0027currency\u0027, currency: \u0027CAD\u0027 });\r\ndocument.getElementById(\u0022demo1\u0022).innerHTML = \u0022Amount: \u0022 \u002B format.format(number);\r\ndocument.getElementById(\u0022demo2\u0022).innerHTML = \u0022Amount: \u0022 \u002B format.format(number);\r\ndocument.getElementById(\u0022demo3\u0022).innerHTML = \u0022Amount: \u0022 \u002B format.format(number);\r\ndocument.getElementById(\u0022demo4\u0022).innerHTML = \u0022Amount: \u0022 \u002B format.format(number);\r\ndocument.getElementById(\u0022demo5\u0022).innerHTML = \u0022Amount: \u0022 \u002B format.format(number);\r\ndocument.getElementById(\u0022demo6\u0022).innerHTML = \u0022Amount: \u0022 \u002B format.format(number);\r\ndocument.getElementById(\u0022demo7\u0022).innerHTML = \u0022Amount: \u0022 \u002B format.format(number);\r\ndocument.getElementById(\u0022demo8\u0022).innerHTML = \u0022Amount: \u0022 \u002B format.format(number);\r\ndocument.getElementById(\u0022demo9\u0022).innerHTML = \u0022Amount: \u0022 \u002B format.format(number);","IsDeferred":false}]}