
Funkcije u JS
Authored by Barbara Smilović
Computers
KG - 12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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>
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
Tabele HTML
Quiz
•
9th Grade
10 questions
Conceptos Básicos Excel
Quiz
•
1st - 3rd Grade
12 questions
BAI 25_TINHOC
Quiz
•
10th Grade
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
10 questions
HTML
Quiz
•
12th Grade
13 questions
Python
Quiz
•
9th Grade
10 questions
Lesson 9: Intelligence is the Ability to Adapt to Change
Quiz
•
8th Grade
10 questions
CHƯƠNG TRÌNH CON BT1
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
10 questions
Module 2 Vocab
Quiz
•
5th Grade
18 questions
[AP CSP] JavaScript Programming Lesson 2025-2026
Lesson
•
9th - 12th Grade
57 questions
[AP CSP] Unit 5 Review: Internet & Cybersecurity
Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
15 questions
Google Sheets
Quiz
•
7th - 8th Grade
10 questions
Introduction to Coding
Interactive video
•
3rd - 6th Grade