Help please assignment due in 1 hour
its an 8 step exersize:
1. Create an HTML file and save it as pr4_2.html.
3. Create one function that takes in two strings as parameters. Have it return the value of the
two strings added together, but with a space between them.
4. Create a second function that gets the result of the first function and assigns it to a variable.
Write the value of this variable directly into the HTML document. The parameters to send
to the first function are the strings “Hi” and “there!”.
5. In the main script, create a new variable and assign it the result of the first function. This
time, send the function the two strings “Regular” and “text!”.
6. Create an alert that will display the value of this variable in an alert box.
7. In the body section of the HTML page, place the script tags in the document (pointing to the
prjs4_2.js file) so that the script will write the result of the second function after a line of
strong text reading “This is some strong text.”
your browser to see how it works.
The results should be an alert that says “Hi there!” followed by the page opening when OK
is clicked in the alert box. The page should display a strong line of text reading “This is some
strong text.” On the next line, there should be text reading “Regular text!”
If anyone could please do this and send me the code It would help out so much, i have really bad anxiety problems and can't retain the information right now to do it given the time limit please help me!
Exactly! This can be done within 10 min but you have to show us that you tried to do it by yourself before asking for any additional help. If you do so I'm sure someone will help you out to cope with this task.
Originally Posted by winthropite
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)