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

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....
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...
Using Microsoft Word, create an email message to your boss that: Summarizes the requirements of the...
Using Microsoft Word, create an email message to your boss that: Summarizes the requirements of the CAPSIM Business Simulation project and describes how you will approach the project. Summarizes the requirements of the Capstone project and describes how you will approach that project. Your email should be formatted according to the guidelines. Your document should contain two paragraphs and be no longer than one page.
JavaScript - Create a class using "names" as the identifier. Create a constructor. The constructor must...
JavaScript - Create a class using "names" as the identifier. Create a constructor. The constructor must have elements as follow: first ( value passed will be String ) last ( value passed will be String ) age ( value passed will be Numeric ) The constructor will assign the values for the three elements and should use the "this" keyword Create a function, using "printObject" as the identifier printObject: This function will have three input parameters: allNames , sortType, message...
Using Javascript Create a page places an order for a Calzone: Using Text box to get...
Using Javascript Create a page places an order for a Calzone: Using Text box to get customers Name Radio Buttons for sizes: small, medium, large list for type of crust: crispy, soft, hard check boxes for toppings, with at least 3 to be selected Submit button that displays the order information.
data set will need at least four variables - at least two categorical and at least...
data set will need at least four variables - at least two categorical and at least two quantitative. For example, you might consider the following variables for American participants in a survey: birth month (categorical), state of birth (categorical), average number of bowls of cereal eaten per week (quantitative), and amount spent on groceries (quantitative). (a) First, formulate a research question relating to two of your quantitative variables along the lines of "how does *quantitative variable 1* relate to *quantitative...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT