- 1
function SimpleSymbols(str)
Simple Symbols Have the function SimpleSymbols(str) take the str parameter being passed and determine if it is an acceptable sequence by either returning the string true or false. The str parameter will be composed of + and symbols with several characters between them (ie. ++d+==+c++==a) and for the string to be true each letter must be surrounded by a + symbol. So the string to the left would be false. The string will not be empty and will have at least one letter.
1 Resposta
0
I am able to give you a few methods you can use to create your own program for ethical purposes:
str.charAt(i) ; - determines char value in the ith index of String str
!(...) - changes boolean value of variable or boolean operation
I'm not sure what the example is supposed to signify, but you can compare characters surrounding a letter, that is, if the character is a letter.