Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HELP WITH MY CODE: Go to the bc_today.js file in your editor. At the top of the file, insert a statement indicating that the

PLEASE HELP WITH MY CODE: Go to the bc_today.js file in your editor. At the top of the file, insert a statement indicating that the code will be handled by the browser assuming strict usage. Note that within the file is the getEvent() function, which returns the HTML code for the daily events at the union given a day number ranging from 0 (Sunday) to 6 (Saturday). Variable Declaration Declare the thisDate variable containing the Date object for the date October 12, 2018. Declare the dateString variable containing the text of the thisDate variable using local conventions. Declare the dateHTML variable containing the following text string

date

where date is the value of the dateString variable. Create the thisDay variable containing the day of the week number from the thisDate variable. (Hint: Use the getDay() method.) Function Call Using the thisDay variable as the parameter value, call the getEvent() function to get the HTML code of that days events and store that value in a variable named eventHTML. Page Elements Applying the insertAdjacentHTML() method to the page element with the ID unionToday, insert the value of the dateHTML plus the eventHTML variables before the end of the element contents. Document your code with descriptive comments.

HTML Code:

Bridger College Student Union

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions