Pozovi funkciju:
function pozdravna() {
alert("Hello World!");
}
Funkcije u JS
Quiz
•
Computers
•
KG - 12th Grade
•
Easy
Barbara Smilović
Used 3+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pozovi funkciju:
function pozdravna() {
alert("Hello World!");
}
pozdravna()
Pozdravna()
pozdravna('Hello')
pozdravna('Hello World!')
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Definiraj funkciju s imenom zdravo (što treba pisati na crti?)
_______ {
alert("Ja sam funkcija!");
};
3.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Nadopuni (što treba pisati na crti?) da bi se rezultat ispisao u odlomak:
function broj() {
a=1; b=2;
c=a+b;
document.getElementById(_____).innerHTML=c;
}
...
<p id="rez">Ovdje treba pisati rezultat</p>
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Nadopuni:
function ___________ {
var ime=prompt("Kako se zoveš?");
alert("Zdravo "+ime+" tvoj sretni broj je "+x);
}
...
sretniBroj(7);
sretniBroj(x)
sretniBroj(7)
sretniBroj()
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Koji atribut treba pisati na crti ako želimo da se pozdrav ispiše na klik mišem?
<button _____________="alert('Hello')"> Klikni me! </button>
onClick
onclick
onDblClick
onMouseMove
6.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Pozovi funkciju kvadrat() kada se mišem pređe preko odlomka:
<p __________="kvadrat()" id="rez"> Izračunaj površinu kvadrata </p>
7.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Što treba pisati na crti da se veličina tekst u odlomku postavi na 16pt kada se klikne na odlomak?
function slova() {
document.getElementById("tekst").style._______="16pt";
}
...
<p onClick="slova()" id="tekst">Promijeni veličinu slova</a>
8.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Dohvati vrijednost unesenu u input polje (što treba pisati na crti?):
...
<input type="text" name="skola">
...
var imeSkole = document.getElementsByName("skola")[0]._______;
10 questions
Sigurno pretraživanje interneta
Quiz
•
3rd Grade
13 questions
Programski jezik C - predavanja (01)
Quiz
•
9th Grade
10 questions
Mozgalice
Quiz
•
3rd - 4th Grade
12 questions
Sigurnost i pravila ponašanja na internetu
Quiz
•
5th - 6th Grade
11 questions
Sigurnost na internetu
Quiz
•
2nd Grade
9 questions
2022 - DBP - 02
Quiz
•
11th Grade
10 questions
Korak po korak do rješenja; Petljamo petlju
Quiz
•
5th Grade
10 questions
Mozgalice 9,10 - 2. razred
Quiz
•
2nd Grade - University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade