+ 3
Help in JavaScript
I want a for loop that this process will repeat for more than one numbers https://code.sololearn.com/Wz8zWbmdS2h1/?ref=app
8 Answers
- 1
here is your solution
var string = ["+919999999999","+918888888888","+917777777777"];
for (i in string){
string[i] = string[i].slice(-10);
}
document.write(string)
0
# create a list of prime numbers
prime_numbers = [2, 3, 5, 7]
# reverse the order of list elements
prime_numbers.reverse()
print('Reversed List:', prime_numbers)
# Output: Reversed List: [7, 5, 3, 2]
0
See codewitharry on YouTube
0
https://code.sololearn.com/c9T24xosz0DG/?ref=app
https://code.sololearn.com/cm7w5COhKLq5/?ref=app
https://code.sololearn.com/WT9gpOAd16ei/?ref=app
https://code.sololearn.com/c2VAjlFjPS0g/?ref=app
https://code.sololearn.com/cKTjRTdk9mRy/?ref=app
https://code.sololearn.com/ce3UHx7Db707/?ref=app
https://code.sololearn.com/cpOSjZ1h31fT/?ref=app
https://code.sololearn.com/cO1UwhWQojhF/?ref=app
https://code.sololearn.com/c641tnEG9jHe/?ref=app
https://code.sololearn.com/WPi5xT35tfx8/?ref=app
https://code.sololearn.com/c0iUyvs1GzWE/?ref=app
https://code.sololearn.com/WKS4UHDJ93NQ/?ref=app
https://code.sololearn.com/WfNv13F22qGz/?ref=app
https://code.sololearn.com/cUsgD7kVjkl4/?ref=app
https://code.sololearn.com/cIUHeXIOanv0/?ref=app
https://code.sololearn.com/cw8aVin3Ikej/?ref=app
https://code.sololearn.com/c57BsTvWpru7/?ref=app
https://code.sololearn.com/WKIr8FoK41cj/?ref=app
https://code.sololearn.com/c5tBhPcwOA40/?ref=app
https://code.sololearn.com/cYkIrHdVeOeM/?ref=app
https://code.sololearn.com/cf29y4P8Pcim/?ref
0
I don't know why I can answer the questions in JavaScript but when it comes to practical I cant
0
Hi
0
Hello please, i want to install python in my computer, but it does not happen.
0
Lap
The name is entered in letters only
Age is entered in numbers, but between 18 and 60, they are only two numbers
He can add more than one course
The Delete above deletes the last item in the table
Delete All deletes everything
In Delete on each row, delete this row
javascript