+ 2
First letter [Javascript] [solved]
How can I define the first letter of a word in JavaScript? Input: John Output: J
2 Antworten
+ 1
var name = Alex
document.write(name.charAt(0));
like this?
0
i just tried it and it worked. Thanks a lot. ive been crazy looking for this. Thanks