O último caractere é um "N"?

Published by Nomove in

Crie uma função que receba uma string (um nome aleatório). Se o último caractere do nome for um "n", retorne true; caso contrário, retorne false.

Exemplos

isLastCharacterN("Aiden") ➞ true

isLastCharacterN("Piet") ➞ false

isLastCharacterN("Bert") ➞ false

isLastCharacterN("Dean") ➞ true

Observações

A função deve retornar um valor booleano (ou seja, true ou false).