Intest with node js

I have written this program in node js but I am not getting why I am getting a runtime error “NZEC”.

My Program:-

process.stdin.resume();
process.stdin.setEncoding(‘utf8’);
var ctr = 0;
process.stdin.on(‘data’, function (chunk){
let data = chunk.split(’\n’);
let n = Number(data[0].split(’ ‘)[0]);
let k = Number(data[0].split(’ ')[1]);
for(var i=1;i<=n;i++){
let t = Number(data[i]);
console.log(“for t”);
console.log(t);
if(t%k === 0) ctr++;
}
process.stdout.write(ctr);
});

I am not understanding what is wrong in this program. With the same logic, if I am solving program in C then it is getting executed successfully and it also passing all the test cases. But why a runtime error in node js