CST 221 UMT Programming Alert in Javascript Exercise
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →Create a program that will do the following when run:
1) A window alert appears with the message “Click ok to see my name”.(Different browser might display it differently)
2) Once you click ok, a line appears on the webpage that reads “My name is StudentName”.Put your name in place of the StudentName.
Requirements:
1. You must use a Function that will accept a variable called myname as a parameter.
2. The variable myname should be given the value of your first name.
3. The Function must be in a javascript file called second.js. Your html page should be called second.html(refer to assignment 1 if you forgot how to call javascript file from html file)
4. The Function must return the message to be displayed.Do not display the message inside the Function.
Use comments and lay the code out so it can be easily followed!
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds