The arguments are the stringadd function and the data3 string array. Here we first introduce the stringadd function. As shown in the tenth line, the stringadd function mainly returns the second argument of the argument three array. The string value and blank character at the position are concatenated with the string value at the second position of the argument three array to generate a new string, so data2.Map(stringadd, data3); will become the first one of data2 Array value content " Windows 10 " plus blank characters plus the first array value content of data3 "
NAS " is the " Windows 10 NAS " string, the first array value content of the newly generated array, the first array value content of data2 The content of the two array values "ITE2" plus a blank character plus afghanistan whatsapp phone number the content of the second array value "Center" of data3 is the string " ITE2 Center ". The content of the second array value of the newly generated array, the content of the second array value of data2 The content of the three array values "Power" plus a blank character plus the content of the third array value "Cloud" of data3 is the " Power Cloud " string.
The content of the third array value of the newly generated array is the content of the third array value of data2. The content of the four array values "About" plus blank characters plus the content of the fourth array value "ITE2" of data3 is the string " About ITE2 ". The fourth array value content of the newly generated array, the seventh line will The newly generated array in the sixth line is output to the console window in JSON string format, and the result is [" Windows 10 NAS ", " ITE2 Center ", " Power Cloud ", " About ITE2 "]
The sixth line executes the Map function on data2.
-
- Posts: 61
- Joined: Sun Dec 22, 2024 4:29 am