Tag:Durian

  • JS — array method & higher order function

    Time:2022-6-7

    1、 Basic array usage 1. Create array method (1) Use the new keyword Let stu1 = new array (‘zhang San ‘,’ Li Si ‘,’ Wang Wu ‘,’ Zhao Liu ‘); (2) Use brackets [], recommended Let stu2 = [‘Zhang San’, ‘Li Si’, ‘Wang Wu’, ‘Zhao Liu’, ‘Li Lei’]; (3) Use array of() let stu3 = […]