Help in JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

13th Apr 2021, 5:23 PM
Hrithik Mishra
Hrithik Mishra - avatar
7 Answers
- 1
here is your solution var string = ["+919999999999","+918888888888","+917777777777"]; for (i in string){ string[i] = string[i].slice(-10); } document.write(string)
13th Apr 2021, 6:24 PM
Ayush Kumar
Ayush Kumar - avatar
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]
29th Nov 2021, 9:55 AM
Ahmed Zaher
0
See codewitharry on YouTube
3rd Mar 2022, 12:07 PM
Ahmed Waiz
Ahmed Waiz - avatar
0
I don't know why I can answer the questions in JavaScript but when it comes to practical I cant
22nd Jan 2023, 5:56 PM
David Benjamin
0
Hi
25th Feb 2023, 5:27 AM
Surya Kumar
Surya Kumar - avatar
0
Hello please, i want to install python in my computer, but it does not happen.
14th Aug 2023, 11:47 AM
stive paulin