1.

What type of file is YUI Compressor?(a) Binary file(b) JAR file(c) Text file(d) Assembly fileThis question was posed to me at a job interview.The above asked question is from JavaScript Minification in section Performance Measures in JavaScript of JavaScript

Answer»

The correct choice is (B) JAR file

Easy explanation: The YUI Compressor is JavaScript minifier designed to be 100% safe and yield a higher compression ratio than most other tools. YUI Compressor is a jar file and RUNS from the command line. Because of this, it is easily integrated into a build process. It looks LIKE this:

java -jar yuicompressor-[version].jar [options] [file NAME]



Discussion

No Comment Found

Related InterviewSolutions