Docsity

This Is all about 06 tasks performance , Summaries of Mathematics

Toggle sidebar
bg1
IT2301
06 Laboratory Exercise 1 *Property of STI
Page 1 of 1
Laboratory Exercise
JavaScript Functions
Objective:
At the end of the exercise, the students should be able to:
▪ Use proper function syntax to perform a particular task in JavaScript.
Requirement:
▪ Visual Studio Code
Instructions: (60 points)
1. Write a program with JavaScript functions that satisfies the following conditions:
• A program that asks about the age of their favorite artist and then compares it to 25.
• If the age is below 25, the program writes, “They’re [age] old and they’re younger than Google”.
• If the age is also 25, the program writes, “They’re [age] and they’re as old as Google”.
• If the age is above 25, the program alerts “They’re [age] and they’re older than Google”.
2. Highlight all the JavaScript syntax used and identify how they work in the program.
3. Submit the code with the proper and correct structure.
GRADING RUBRIC:
Criteria
Excellent
(4)
Good
(3)
Fair
(2)
Poor
(1)
Score
Completeness
(x5)
The student provided
all the requirements.
The student missed
some requirements
The student
missed most of
the requirements
The output is
unfinished.
/20
Identification
(x5)
The student identified
the syntax with
correctness and
relevance.
The student
identified the syntax
with minor
inaccuracies.
The student
identified the
syntax with major
inaccuracies.
The student
barely
identified the
syntax used.
/20
Structure
(x5)
The student
displayed an
organized structure.
The student
displayed an
inconsistent
structure.
The student
displayed a
confusing
structure.
The code has
no structure.
/20

Partial preview of the text

Download This Is all about 06 tasks performance and more Summaries Mathematics in PDF only on Docsity!

IT 2301 06 Laboratory Exercise 1 _Property of STI_* Page 1 of 1

Laboratory Exercise

JavaScript Functions

Objective:

At the end of the exercise, the students should be able to: ▪ Use proper function syntax to perform a particular task in JavaScript.

Requirement:

▪ Visual Studio Code

Instructions: ( 60 points)

  1. Write a program with JavaScript functions that satisfies the following conditions:
    • A program that asks about the age of their favorite artist and then compares it to 25.
    • If the age is below 25 , the program writes, “They’re [age] old and they’re younger than Google”.
    • If the age is also 25, the program writes, “They’re [age] and they’re as old as Google”.
    • If the age is above 25 , the program alerts “They’re [age] and they’re older than Google”.
  2. Highlight all the JavaScript syntax used and identify how they work in the program.
  3. Submit the code with the proper and correct structure. GRADING RUBRIC: Criteria Excellent (4) Good (3) Fair (2) Poor (1) Score Completeness (x 5 ) The student provided all the requirements. The student missed some requirements The student missed most of the requirements The output is unfinished.

Identification (x5) The student identified the syntax with correctness and relevance. The student identified the syntax with minor inaccuracies. The student identified the syntax with major inaccuracies. The student barely identified the syntax used.

Structure (x 5 ) The student displayed an organized structure. The student displayed an inconsistent structure. The student displayed a confusing structure. The code has no structure.