div {
background-color: red;
}
How do you call the following function?
function helloWorld() {
println(‘Hello World!’);
}
.myclass {
width: 50px;
height: 50px;
}
What is missing from the following css rule?
div {
text-align: center
}
div {
text-align: center;
}
What is printed out when the following method runs?
function counter() {
for (var i = 0; i < 5; i++) {
println(i);
}
}
Which text would be red in the example below?
div, #myid, .myclass {
color: red;
}
<span class=”myclass”>This is text 1!</span>
<h1 id=”myid”>This is text 2!</h1>
<div>This is text 3!</div>
function foo(bar) {
console.log(bar);
}
What will be printed in the following example?
if (true && false) {
println(‘apples’);
}
if (true || false) {
print(‘oranges’);
}