1.

What is the purpose of the property width belonging to the ImageData element?(a) Number of data(b) Number of pixels(c) Number of pixels per row of data(d) Number of columnsThis question was addressed to me in exam.I want to ask this question from JavaScript Benchmarking and Logging with perfLogger topic in chapter Parsing, Benchmarking and Logging of JavaScript

Answer»

Correct choice is (c) Number of pixels per ROW of data

To elaborate: Image data element indicates the INTRINSIC WIDTH of the image, in CSS pixels. The width property is used to retrieve or STORE the number of pixels per row of data.



Discussion

No Comment Found

Related InterviewSolutions