JavaScript solutions for basic math operations, array sorting, sequence generation, and fundamental logic.