attention about js forEach
while map a array with forEach , if you change this arry’s length, there will be a problem. So, don’t do it. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <...