1.

Which of the following can be helpful in creating your own feature detect?(a) Modernizr.addTest(b) Modenizer.on(c) Modernizr._domPrefixes(d) Modernizr.atRuleI had been asked this question during an interview.This interesting question is from Adding HTML features safely with Modernizr topic in section HTML Images & Web Page Files of HTML

Answer»

The correct choice is (a) Modernizr.addTest

To EXPLAIN: If you want to create your own feature detects you can simply use Modernizr.addTest, a string is passed generally in lowercase without any PUNCTUATION LIKE Modernizr.addTest(feature, test). It returns the Boolean value. Modernizr._domPrefixes works same as _prefixes. Modernizr.atRule is one of modernizr API(Application Programming INTERFACE) having syntax like – Modernizr.atRule(prop).



Discussion

No Comment Found

Related InterviewSolutions