Braces or Brackets?
Someone forgot whether to use braces or brackets and you have to clean up their code!
Start file
var some_function = function {arg1, arg2} [ var some_array = (1, 2, 3, 4, 'foo'); for {var i in some_array} ( console.log(some_array, [{1 + (8 / 2)}, 'hello (world)'); ) ];
End file
var some_function = function (arg1, arg2) { var some_array = [1, 2, 3, 4, 'foo']; for (var i in some_array) { console.log(some_array, [(1 + (8 / 2)), 'hello (world)'); } };
View Diff
1,6c1,6 < var some_function = function {arg1, arg2} [ < var some_array = (1, 2, 3, 4, 'foo'); < for {var i in some_array} ( < console.log(some_array, [{1 + (8 / 2)}, 'hello (world)'); < ) < ]; --- > var some_function = function (arg1, arg2) { > var some_array = [1, 2, 3, 4, 'foo']; > for (var i in some_array) { > console.log(some_array, [(1 + (8 / 2)), 'hello (world)'); > } > };
Solutions by @kana1:
Unlock 2 remaining solutions by signing in and submitting your own entry