0

In this practice code how do you tell when the number is used to identify the number in the string

I'm trying to get a better understanding of going to use the number to identify another number in the string var x =[1,3,5,8]; var temp = x[x.length -1]; x[x.length -] = x[0]; x[0] = temp; console.log(x);

28th Jun 2022, 9:59 PM
MelvinToran
MelvinToran - avatar
1 Respuesta
+ 2
there is no string in your code. Also please mention language name in tags. Can you also elaborate more on what you are really trying to understand here ?
28th Jun 2022, 11:38 PM
Abhay
Abhay - avatar