Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!