Question

In: Computer Science

JavaScript Create a welcome message on your webpage using three variables At least two of the...

JavaScript

Create a welcome message on your webpage using three variables

At least two of the variables should be concatenated together

Use document.write to add a statement about what is your favorite past time?

Format the HTML document appropriately with a title, and the correct HTML structure to hold the JavaScript

Create an array to share what your favorite color is. The array must have at least three values and be called via the index value

Correctly link the JavaScript document to the HTML document via a relative link

Syntax is well formatted and easy to read Use of at least a JavaScript document and a HTML document

All files are correctly stored in a single folder, zipped, and prepared for upload to blackboard

Solutions

Expert Solution

if you have any doubts, please give me a comment...

<!DOCTYPE html>

<html>

<head>

<title>Welcome Page</title>

<script type="text/javascript" src="script.js"></script>

</head>

<body></body>

</html>

script.js

var str1 = "Hello";

var str2 = "World";

var str3 = "Welcome to "+str1 + str2;

document.write(str3+ ", what is your favorite past time?<br />");

var colors = ['red', 'green', 'blue', 'orange', 'black'];

document.write("Your Favorite color is: "+colors[2]);


Related Solutions

Display a simple message "Welcome" on your demo webpage. When the user hovers over the message,...
Display a simple message "Welcome" on your demo webpage. When the user hovers over the message, a popup should be displayed with a message "Welcome to our new WebPage!!!".
Java Programing Display any welcome message at the top of the output screen Create following variables:...
Java Programing Display any welcome message at the top of the output screen Create following variables: Price for a cup of coffee (make it adjustable within the program) Number of cups (response from User) Tax Rate in San Diego is 8%. Define 8% as a CONSTANT variable that never changes Payment Method (Cash, Credit Card, Store Credit, Gold) Ask the customer for their first name, and store it as a String object. Ask the customer (by name) how many cups...
Write a simple javascript program using express and node.js to create a simple webpage that can...
Write a simple javascript program using express and node.js to create a simple webpage that can lead to other pages within the program. if possible, Comment everything out so I could understand how every things works.  But basically, server should be hosted on localhost:8000 and should have a simple starting page. Maybe a welcome message, with at least two "links" that goes to a "homepage" and then a "exit" page.
Objective: Create a webpage with a simple quiz. Instructions: The webpage must contain at least ten...
Objective: Create a webpage with a simple quiz. Instructions: The webpage must contain at least ten simple questions as a quiz. The user must be able to answer the questions in the input boxes and finally click on a Submit button to get a final score. The questions must be such a way that some answer formats must cover all the following types: A number A string An expression (e.g. 2+3) If the user does not answer a question and...
1 – Create a webpage that contains a table with exactly three rows and two columns....
1 – Create a webpage that contains a table with exactly three rows and two columns. The first row will contain a table heading containing the name of a US National Park, that spans across all columns. Hint: use the colspan attribute inside the opening th tag Give the table heading an onmouseover that will change the text of the heading when it is moused over to read My Favorites Park! (Hint: use innerHTML). Use onmouseout to change it back....
1 – Create a webpage that contains a table with exactly three rows and two columns....
1 – Create a webpage that contains a table with exactly three rows and two columns. The first row will contain a table heading containing the name of a US National Park, that spans across all columns. Hint: use the colspan attribute inside the opening th tag Give the table heading an onmouseover that will change the text of the heading when it is moused over to read My Favorites Park! (Hint: use innerHTML). Use onmouseout to change it back....
a webpage refer to javascript file for interconnectivty and two css file for styling. how many...
a webpage refer to javascript file for interconnectivty and two css file for styling. how many RTTs are required for browser to fully display the page using non persistent and persistent http?
(CODE IN PYTHON) Program Input: Your program will display a welcome message to the user and...
(CODE IN PYTHON) Program Input: Your program will display a welcome message to the user and a menu of options for the user to choose from. Welcome to the Email Analyzer program. Please choose from the following options: Upload text data Find by Receiver Download statistics Exit the program Program Options Option 1: Upload Text Data If the user chooses this option, the program will Prompt the user for the file that contains the data. Read in the records in...
Program must use Python 3 Your program must have a welcome message for the user. Your...
Program must use Python 3 Your program must have a welcome message for the user. Your program must have one class called CashRegister. Your program will have an instance method called addItem which takes one parameter for price. The method should also keep track of the number of items in your cart. Your program should have two getter methods. getTotal – returns totalPrice getCount – returns the itemCount of the cart Your program must create an instance of the CashRegister...
Using python, produce code that mimics some ATM transactions: a. A welcome message must be displayed...
Using python, produce code that mimics some ATM transactions: a. A welcome message must be displayed initially reflecting the appropriate time of day (for example: Good Night, Welcome to Sussex Bank). b. Assume the user’s account balance is $5375.27. c. Allow the user to enter a pin number that does not have to be validated: def atm_login(): pin_number = input("Please enter your (4 digit) pin number: ") # display welcome message welcome_message() d. The message should be followed by a...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT