Unit 2 Question

Hi There! NEw teacher for Code.org… one of my stuednts gr 12 asked what the purpose of learning this unit 2 (data compression) and its relavance to Javascript. He said HTML has an easy way to compress a image. I told him i would get back to him. I dont know where to find this info out? I figured it would be the same idea across all languages. Please let me know

One of the goals of the lesson is to learn about two types of compression (lossy and lossless) and why compression is needed. The other goal is to learn about heuristics. Data compression algorithms are heuristics that do not guarantee an optimal solution but a reasonable solution. This lends its way to the notion of “hard” problems that would take a computer an unreasonable amount of time to solve.