欢迎来到易学考试网 易学考试官网
全部科目 > 大学试题 > 大学期末考试答案、课后测试习题答案

多项选择题

关于箭头函数错误的是()

    A.const cat = {lives: 9,jumps: () => { this.lives--; }} ;
    B.var button = document.getElementById('press');button.addEventListener('click', () => {this.classList.toggle('on');}); ;
    C.let insert = (value) => ({into: (array) => ({after: (afterValue) => { array.splice(array.indexOf(afterValue) + 1, 0, value);return array;}})});
    D.const mult2 = a => a * 2;

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题