This discussion is closed.
Help Me!!!!!!!
Badges: 0
Rep:
?
#1
Report Thread starter 3 years ago
#1
var products = ["Printer", "Tablet", "Router", "iPhone", "Samsung"];
(I) set up an array to include the items show above
(ii) write a script that:
-Outputs the items in alphabetical order
-Counts the number of items in an array
In each case, plan, implement, test and demonstrate the scripts.

Changes made to a HTML elements such as images can be useful when producing animations
It is possible to display a traffic light sequence on a webpage. When the button 'Change Lights' is clicked, the lights change according to the sequence.

(I) Make a list of assets that will be required in order to produce this display.
(ii) Describe and explain where the assets will be best located
(iii) Describe the structure of an array that could be used to handle the traffic light sequence
(iv) Write a script that uses the array described in part (iii) to produce an animation of a set of traffic lights such that the lights change in the standard sequence each time the button is clicked.

Change the animation script so that the sequence of lights is displayed automatically on a timed basis without user input

Scripts can be embedded in the HTML of web pages or saved externally as script files. Discuss the benefits and drawbacks of each approach
0
Dez
Badges: 20
Rep:
?
#2
Report 3 years ago
#2
(Original post by Help Me!!!!!!!)
You should use a more descriptive title, you're more likely to get useful answers that way.

Can you show us what you've done so far, or what in particular you need help with on these questions?
0
Help Me!!!!!!!
Badges: 0
Rep:
?
#3
Report Thread starter 3 years ago
#3
Nothing significant really, I was just hoping someone could not tell me the answer but help talk me through how to do it
0
ChemistryIsBest
Badges: 2
Rep:
?
#4
Report 3 years ago
#4
guys this is the gcse computing 2017 coursework, do not help this person!
0
Help Me!!!!!!!
Badges: 0
Rep:
?
#5
Report Thread starter 3 years ago
#5
(Original post by ChemistryIsBest)
guys this is the gcse computing 2017 coursework, do not help this person!
Shhhhhh
0
Dez
Badges: 20
Rep:
?
#6
Report 3 years ago
#6
(Original post by Help Me!!!!!!!)
Nothing significant really, I was just hoping someone could not tell me the answer but help talk me through how to do it
Well, you might find some of the JavaScript documentation a useful starting point:

https://developer.mozilla.org/en/doc...cts/Array/sort
https://developer.mozilla.org/en-US/...s/Array/length
https://developer.mozilla.org/en-US/...rs/setInterval

Once you understand the tools you have available, it's simply a case of deploying them in the right way to solve your problem.
0
Help Me!!!!!!!
Badges: 0
Rep:
?
#7
Report Thread starter 3 years ago
#7
(Original post by Dez)
Well, you might find some of the JavaScript documentation a useful starting point:

https://developer.mozilla.org/en/doc...cts/Array/sort
https://developer.mozilla.org/en-US/...s/Array/length
https://developer.mozilla.org/en-US/...rs/setInterval

Once you understand the tools you have available, it's simply a case of deploying them in the right way to solve your problem.
Ok thanks Dez
0
X
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Are you worried that a cap in student numbers would affect your place at uni?

Yes (129)
59.45%
No (47)
21.66%
Not sure (41)
18.89%

Watched Threads

View All