Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you answer the multiple choice below? 1) The term port can be used in different ways depending on the context. When discussing transport protocols

Can you answer the multiple choice below?

1) The term "port" can be used in different ways depending on the context. When discussing transport protocols, ports are _.

virtual

physical

2) Let's say a designer gave you, a web developer, the task of implementing light/dark mode on a website. One requirement the designer gave you is that when a user opens the site on a different device, their choice of light or dark mode should persist. For example, if a user logs into the website and selects dark mode, and then logs into the site on mobile, the site on mobile should still be in dark mode. Where is the appropriate location to store the user's choice?

Server

Cookies

data- attribute on an HTML element

SessionStorage

LocalStorage

 
  • Socks
  • T-Shirt
  • Shorts

3) Given you've selected the list element with text Socks and saved it to a variable sock, how would you access the data-count attribute?

sock.dataset.count

sock.data-count

sock.count

sock.data.count

        

4) After a person clicks the "Click me" button in their browser two times, what do they see? (code above)

A button that reads "Click me!!"

A button that reads "Click me"

A button that reads "!"

A button that reads "Click me!"

A button that reads "!!"

      

5) How can you fix the above code to show "Hello, Programmers!"?

What do you mean? Everything's fine with it.

Add another "div" to the body.

Change the id from "message" to "Message'.

Wrap the JavaScript in a DOMContentLoaded event handler.

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

Multidimensional Array Data Management In Databases

Authors: Florin Rusu

1st Edition

1638281483, 978-1638281481

More Books

Students also viewed these Databases questions

Question

Explain the meanings of reliability and validity.

Answered: 1 week ago

Question

25.0 m C B A 52.0 m 65.0 m

Answered: 1 week ago

Question

How did you feel about taking piano lessons as a child? (general)

Answered: 1 week ago