Patterns 2024: Unit 1 Homework There is a example of bad code in file 1-soc-opt.js Write your own version of code 01.js - functional style