Day 2 : Access the 'JavaScript' string characters using a random number. #642
Replies: 4 comments 3 replies
-
Hello there, have a look at the "String Methods" part in Day 2.
or maybe just |
Beta Was this translation helpful? Give feedback.
-
//-------------------------------10 const accessStr = 'JavaScript' |
Beta Was this translation helpful? Give feedback.
-
My Solution const JS = "JavaScript"; |
Beta Was this translation helpful? Give feedback.
-
We can utilize Math.random() to generate random number and multiply it with String.length so that the resulting number matches the length of the String. My answer is like this:
|
Beta Was this translation helpful? Give feedback.
-
Hello, I'm stuck on this. Can anyone help
Beta Was this translation helpful? Give feedback.
All reactions