Solution Review: DOM
In this lesson, we will discuss the solutions to the questions in the previous lesson.
Question 1: Solution review #
Explanation #
Feature detection and feature inference are both techniques used to determine if a web technology exists in the browser the user is navigating.
Feature detection determines if a feature exists in a specific browser or not. These can be HTML features or JavaScript methods. From this definition, we know that one of the Options B & D could be correct.
Feature inference assumes that if a feature is available in one browser, it is available in all other browsers as well. From this definition, we can conclude that Option B is the correct answer.
In both Options C & D, the following definition is used: accesses information of the browser environment you are using ...