Post #2566860
2026-04-24 18:46 UTC
@caitp@mstdn.social that's not bad, I'd just add what the first function does, like : "the function checks that the given text has one or more characters, and then validates that the first character is a capital letter."
Though I may add in a code review that the function will return true for every character that is not a lowercase letter (it will return true for numbers and punctuation signs, for example).
Replies (2)
-
@orange_lux@eldritch.cafe 2026-04-24 18:47
@caitp@mstdn.social also, I would simplify for non coders : they don't need to know this is ecmascript, and the part about interpolation syntax only brings confusion.
-
@caitp@mstdn.social 2026-04-24 19:04
@orange_lux@eldritch.cafe good point on the code review, I didn't pay that much attention to it. that's on me, feels bad!