Skip to content

Hey I am trying to make the UI of notes app. Zepp os 1.0 #102

Closed Answered by flavioj27
alexmathew11 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, I am the creator of that app, if you like that I could suggest you this:
var longSPC = []
var ustext = "hello i am flvluju and i am helping you ertyer tr ertyer rety re e erty rety erty "
for(let i = 0; i <= ustext.length; i++){
//console.log(ustext.substring(i-1, i))
if(ustext.substring(i - 1, i) == " "){
console.log("spc")
longSPC.push(i)
console.log(longSPC)
console.log(longSPC.length)
if(longSPC.length == 20){
console.log("words limit")
}
}
}
just apply that on the code

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@alexmathew11
Comment options

Answer selected by alexmathew11
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants