The following code snippet should provide the output '[125, 450, 80]'. However, line 3 contains an error. What should be the correct syntax of line 3?
1)var m1 =[5.10. 35,125,450. 80. 40];
2)var _ = require(’underscore');
3)var output = _(m1. function (vall) 4)[
5) return val1 >50
6)}):
7)console.log(output);
Correct Answer:
var output = _.fiIter(m1, function (val1)[
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Node.js MCQ Questions