Posts by Rafael Almeida • 1 point
2 posts
-
-1
votes5
answers639
viewsA: Complete number with "zeros" until the total size is 9!
Post has already been solved but I’ll leave a tip here for the new who search, there is a feature in javascript that allows to do this job easily. string.padEnd(9, '0') Any string that does not…
-
0
votes8
answers34672
viewsA: Convert every first letter of every word into uppercase
From to use a function this way with Javascript function capitalize(str) { if (typeof str !== 'string') { return ''; } return `${str.charAt(0).toUpperCase()}${str.substring(1).toLowerCase()}`; } or…
javascriptanswered Rafael Almeida 1