rockyboy2018
Tape Ball Regular
- Joined
- Nov 24, 2018
- Runs
- 528
Hello Guys,
Could not find useful videos online to get a hold of it. There are but they are not addressing my problem set. I need to do an online assigment and I need some help with respect to this. If you have some idea please let me know.
I need to create a socreboard in the java script that shows a score card if Team 1 wins and then if Team 2 wins. Every time we refresh the page, it must show a different score
I am using Atom. I created index.js . But I am kind of stuck how to go about writing code as I had no previous programming knowledge.
Assignment:
In Atom, create an index.js in that same new project folder and write the code to solve the following challenge:
One team should be your home town, the other team can be any neighboring city;
Everytime you refresh the page, a random score for the upcoming game between the two teams should be generated by your script;
Each team can score from 0 to 5 goals per match;
The H1 should change as follows according to the result of the prophecy:
if team 1 wins:
"[name team 1] wins, [your name] will be happy!"
display the H1 in a color that you like;
if team 2 wins:
"[name team 2] wins, [your name] will be sad!"
display the H1 in a color that you don't like so much;
no winner: "Draw! No winner this time."
display the H1 in any other color;
I created css and html file in the folder but I need to write code in javascript.
If you can offer any help regarding this, I will really appreciate it.
Could not find useful videos online to get a hold of it. There are but they are not addressing my problem set. I need to do an online assigment and I need some help with respect to this. If you have some idea please let me know.
I need to create a socreboard in the java script that shows a score card if Team 1 wins and then if Team 2 wins. Every time we refresh the page, it must show a different score
I am using Atom. I created index.js . But I am kind of stuck how to go about writing code as I had no previous programming knowledge.
Assignment:
In Atom, create an index.js in that same new project folder and write the code to solve the following challenge:
One team should be your home town, the other team can be any neighboring city;
Everytime you refresh the page, a random score for the upcoming game between the two teams should be generated by your script;
Each team can score from 0 to 5 goals per match;
The H1 should change as follows according to the result of the prophecy:
if team 1 wins:
"[name team 1] wins, [your name] will be happy!"
display the H1 in a color that you like;
if team 2 wins:
"[name team 2] wins, [your name] will be sad!"
display the H1 in a color that you don't like so much;
no winner: "Draw! No winner this time."
display the H1 in any other color;
I created css and html file in the folder but I need to write code in javascript.
If you can offer any help regarding this, I will really appreciate it.