MCPcopy Create free account
hub / github.com/ActiveState/code / is_valid_word

Function is_valid_word

recipes/JavaScript/578517_Music_player/recipe-578517.js:255–274  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

253}
254
255function is_valid_word(s)
256{
257 var i=0;
258 var b_valid=false;
259 var c="";
260 for(i=0;i<s.length;i++)
261 {
262 c=s.charAt(i);
263 if (c>="A" && c<="Z")
264 {
265 b_valid=true;
266 }
267 else
268 {
269 b_valid=false;
270 break;
271 }
272 }
273 return b_valid;
274}
275
276function has_only_one_capital_letter(s)
277{

Callers 1

recipe-578517.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected