1.

What is the return data type of the property accept that belongs to the Input element?(a) integer(b) string(c) boolean(d) floatThe question was asked during an interview for a job.Question is from JavaScript Benchmarking and Logging with perfLogger topic in section Parsing, Benchmarking and Logging of JavaScript

Answer»

Correct ANSWER is (b) string

To ELABORATE: The ACCEPT attribute is used to define the types of files that the control can select. When type is “FILE”, this property is a comma-separated list of MIME types that specify the types of files that may be SELECTED. The strings “audio/*”, “video/*”, and “image/*” are also legal.



Discussion

No Comment Found

Related InterviewSolutions