Question: I hava a list of sings: 

```
var sings = [",",".",":","!","?"]

```

How do I check if a word contains one of these signs and return it?

For example:

```
"But,"

return ","

"Finished."

return "."

"Questions?"

return "?"

```

Answer: 
You could solve that with a regular expression:

```js
function match(input) {
  var regex = /([,\.\:!\?])/;
  var matches = input.match(regex);
  return matches ? matches[0] : false;
}

console.log(match("foo?"));   // "?"
console.log(match("bar."));   // "."
console.log(match("foobar")); // false
```
Try this prototype `str.hasSign();` return `sign` if contains or `false` if not.

```js
String.prototype.hasSigns = function() {
  var signs = [",", ".", ":", "!", "?"];
  for (var i = 0; i < signs.length; i++) {
    if (this.indexOf(signs[i]) > -1) return signs[i];
  }
  return false;
}

console.log("football, basketball".hasSigns());

console.log("1-3".hasSigns());

console.log("Good!".hasSigns());
```