Can someone help me with that javascript code?

I'm started studying but I'm not figured out yet how to resolve it. Can someone show me it constructed?

Attachment image

1 Answer

  • EddieJ
    Lv 7
    5 months ago

    The last character would be

    var lastChar = word.substr (word.length - 1);

    but I assume you want someone to do the entire assignment for you.

Still have questions? Get answers by asking now.