James Allan Lab 4.1 1. A similarity between JavaScript and HTML is you write program files for both and JavaScript serves as an extension to HTML you also write your JavaScript inside your HTML thus making them both program files. 2. The imput to your television would be the cable cord bringing the downloaded images into your viewing and the out for a television is the screen showing the image brought from the cable cord. The imput for a CD player is the CD its self and and the output is the headphones bring the sound form the CD to your ears. 3. I would say that the imput would be the text written on the key(code) and the output would be able to view the information due to the code created.