1.

What is the purpose of the function parameter filetype?(a) File type to be expected(b) File type previously got(c) File type that should not be got(d) File type availableThis question was posed to me in my homework.This interesting question is from External JavaScript and PHP in portion Caching, Debugging and Animation of JavaScript

Answer»

Correct OPTION is (a) FILE type to be expected

Explanation: The File.type PROPERTY is an inbuilt FUNCTION of File WebAPI which gives the media type (MIME) of the file REPRESENTED by a file object. The function parameter “filetype” lets you tell the script what file type to expect before loading.



Discussion

No Comment Found

Related InterviewSolutions