HF RL Explorer

Task: Implement Aspect Ratio Calculator Algorithm

Task: Implement Aspect Ratio Calculator Algorithm: a task in Terminal-Lego-15k (Harbor dataset). Create a JavaScript program that calculates the aspect ratio from given width and height dimensions. The aspect ratio should be returned in simplified format (e.g., "4:3", "16:9") suitable for use with…

The task

Create a JavaScript program that calculates the aspect ratio from given width and height dimensions. The aspect ratio should be returned in simplified format (e.g., "4:3", "16:9") suitable for use with image cropping components that require this specific format.

Part of PrimeIntellect/Terminal-Lego-15k.