---
title: "Discussion on \"JavaScript function which confirms the ending of a word\" | Hashnode"
description: "Discussion on \"JavaScript function which confirms the ending of a word\". Here is the problem :\nWe want to create a function that takes two arguments, both strings, and tell us if the second argument is the end of the string or not.\nFor example, the first argument could be 'Cesare' and the second 'e' the function should gi..."
url: "https://hashnode.com/posts/javascript-function-which-confirms-the-ending-of-a-word/604657bde2865f44bf965afa"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript function which confirms the ending of a word](https://cesaremannino.hashnode.dev/javascript-function-which-confirms-the-ending-of-a-word?utm_source=hashnode&utm_medium=feed)

Here is the problem : We want to create a function that takes two arguments, both strings, and tell us if the second argument is the end of the string or not. For example, the first argument could be 'Cesare' and the second 'e' the function should gi...

Mar 8, 2021 · 2 min read · cesaremannino.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#algorithms](https://hashnode.com/tag/algorithms)

## Written by

[Cesare](https://hashnode.com/@devmanny)

@devmanny · Cape Town, South Africa

  
[View profile](https://hashnode.com/@devmanny)

Programmer JavaScript and Python

I am developer from Italy living in Cape Town.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
