Scratchpad is a tool which is include in Mozilla Firefox browser. It is is essentially a live JavaScript editor and prototyping tool. You can access it through menu Tools -> Web Developer Scratchpad. Or you can just simply open it using shortcut Shift+fn+F4 (In Mac OS X). Unlike other tools such as Web Console or…