Which is the preferred testing nowadays for scripting?

Which is the preferred testing nowadays for scripting? Correct Answer Feature testing

The “browser-sniffing” approach is problematic because it requires constant tweaking as new browsers and new versions of existing browsers are introduced. Today, feature testing is preferred rather than making assumptions about particular browser versions and their features, you simply test for the feature (i.e., the method or property) you need.

Related Questions

Which of the following is called after plug-in is initialized to get scripting interface?
Which element is not a scripting element?