0
I’m making a system to leave the first letters of every minute word, but that’s not what matters. I took the first word of my name, and I turned all the letters into minuscules, and then I turned the first word into a capital letter. But I needed 2 lines for this. I wanted to know if you can join the 2 lines in one.
<script>
var nomePuro = "GABRIEL gUIDETti";
var primeiroNomeMin = nomePuro.split(" ")[0];
primeiroNomeMin = primeiroNomeMin.toLowerCase();
</script>
The place for code review is in the community Code review.
– Chance
I had it wrong? You didn’t want an algorithm on a line?
– Maniero