dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Help please assignment due in 1 hour

  1. #1
    Join Date
    Feb 2014
    Posts
    5

    Help please assignment due in 1 hour

    its an 8 step exersize:

    1. Create an HTML file and save it as pr4_2.html.
    2. Create an external JavaScript file and save it as prjs4_2.js. Use this file for steps 3–6.
    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.”
    8. When you have finished, save the HTML and JavaScript files and view the HTML page in
    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!

  2. #2
    Join Date
    Feb 2014
    Posts
    5
    Anyone, please?

  3. #3
    Join Date
    Jan 2014
    Location
    Boston, Massachusetts
    Posts
    66
    Hey man, I hate to say it but I don't think anyone is going to do this for you. Give it a try and if you get stuck or have errors feel free to ask for help. I know it's complicated but take a deep breath and use Google to look up JavaScript functions. Good luck and don't give up.

  4. #4
    Join Date
    Oct 2012
    Location
    Croatia
    Posts
    255
    Quote Originally Posted by winthropite View Post
    Hey man, I hate to say it but I don't think anyone is going to do this for you. Give it a try and if you get stuck or have errors feel free to ask for help. I know it's complicated but take a deep breath and use Google to look up JavaScript functions. Good luck and don't give up.
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles