πŸ“Š JavaScript
Q. What is the return data type of the property accept that belongs to the Input element?
  • (A) integer
  • (B) string
  • (C) boolean
  • (D) float
πŸ’¬ Discuss
βœ… Correct Answer: (B) string

Explanation: 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. Mirrors the accept attribute.

Explanation by: Mr. Dubey
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. Mirrors the accept attribute.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
141
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate