about | help | code help+videos | done | prefs |
Given two distinct ordered pairs, (redX, redY) and (whiteX, whiteY), return whether the line that passes through them is horizontal or not horizontal. isHorizontal(-3.0, 7.0, 9.0, 3.0) → 'not horizontal' isHorizontal(4.0, -5.0, 4.0, -5.0) → 'horizontal' isHorizontal(-3.0, 8.0, -35.0, 8.0) → 'horizontal' ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 175
Copyright Nick Parlante 2017 - privacy