the case where the params were wrong and throw an error
console.log(a); // a is not undefined我如何重构它呢?我找到的唯一解决方案就是这样重构:
function doThingsToHandleTheCaseTheParamsAre
我有一个名为school.test的文件,它看起来像这样:Sam mathsSimon frenchSimon english
我想写一个for循环,它逐行读取这个txt文件,并将该行读取的值分配给不同的变量,然后通过命令运行它。问题是我不知道如何将第一个值设置为变量,而将第二个值设置为不同的变量。例如,对于For循环读取的<