xxxxxxxxxx
let str = '';
loop1:
for (let i = 0; i < 5; i++) {
if (i === 1) {
continue loop1;
}
str = str + i;
}
console.log(str);
// expected output: "0234"
xxxxxxxxxx
// Creating a label element and setting its properties
var labelElement = document.createElement('label');
labelElement.innerHTML = 'Username:';
// Appending the label element to the body
document.body.appendChild(labelElement);
// Adding an associated input field to the label
var inputElement = document.createElement('input');
inputElement.type = 'text';
labelElement.appendChild(inputElement);