You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var galaxies = {"Milky Way", "Whirlpool", "Andromeda"};
Q26. Which description correctly describes the initial values of flex items if the only thing you have done is apply display: flex to their parent?
Items display in a row, lined up at the start, and do not stretch to fill the container
Items display in a column, lined up at the start, and do not stretch to fill the container
Items stay in a column until you add some flex properties.
Items display in a row, lined up at the start, and stretch to fill the container
Q27. Which line of code, if applied to all flex items in a flex container, would cause each flex item to take up an equal share of the total width of the container? For example, if there are four items, they would get 25% of each/
flex: 1 0 0;
flex: initial;
flex: 1 1 auto;
flex: 1 0 auto;
Q28. A video on your webpage does not display and the console shows an error about mixed content. What is happening?
The webapge is using a DOCTYPE, which renders it incapable of displayed video in addition to other web content.
Your browser does not support HTML5 video.
The video is from a source that cannot be displayed in your location for legal reasons.
The page is loaded via HTTPS, but the video is being served insecurely as HTTP and the browser is blocking it.
Q29. What will this loop print?
let max = 3;
for (i = 0; i > max; i++) {
document.write("skrt ");
}
skrt skrt skrt
skrt skrt
skrt skrt skrt skrt
nothing
Q30. You have placed an image in a directory named images and want to reference it from a page located in the root of your site. Which choice would correctly display the image on the page?
< img src="image.jpg">
< a href="images/image.jpg">
< img src="images/image.jpg">
< img href="image.jpg">
Q31. Which choice is a correct use of the parseInt() function in Javascript that parses a string and return an integer?
parseInt("six");
parse_int('6');
parseInt("6");
parseint("6");
Q32. How can you rewrite this function using arrow function syntax?
let product => (x,y) { x * y; }
let product = (x,y) => x*y;
let product => x*y;
let product = (x,y) -> x*y;
Q33. Lighthouse is a tool for auditing your website. Which choice is not a category of report offered by Lighthouse?
performance
UX design
accessibility
SEO
Q34. In the context of this code, how would you describe user?