+ 1

JavaScript problem

Hi there 👋🏻 Is it possible to separate the letters of a word and perform a separate operation on each of them in JS?

8th Aug 2023, 1:04 PM
𝒦 ℛ
𝒦 ℛ - avatar
3 odpowiedzi
+ 5
Yes 𝒦 ℛ one option might be a do / while
8th Aug 2023, 1:31 PM
BroFar
BroFar - avatar
+ 2
𝒦 ℛ have a look at the .charAt() method that extracts a single character from a given position in the string. For reference: https://www.w3schools.com/jsref/jsref_charat.asp
8th Aug 2023, 2:15 PM
Brian
Brian - avatar
+ 1
How it can be done with do while ? Can you give me an example please?
8th Aug 2023, 5:31 PM
𝒦 ℛ
𝒦 ℛ - avatar