--- title: SEDOLs id: 59d9c6bc214c613ba73ff012 challengeType: 5 videoUrl: '' localeTitle: SEDOLs --- ## Description
Tarefa:

Para cada lista de números de SEDOLs de 6 dígitos, calcule e anexe o dígito da soma de verificação.

Isto é, dada a string de entrada à esquerda, sua função deve retornar a string correspondente à direita:

 <pre> 710889 => 7108899 B0YBKJ => B0YBKJ7 406566 => 4065663 B0YBLH => B0YBLH2 228276 => 2282765 B0YBKL => B0YBKL9 557910 => 5579107 B0YBKR => B0YBKR5 585284 => 5852842 B0YBKT => B0YBKT7 B00030 => B000300 </pre> 

Verifique também se cada entrada está formada corretamente, especialmente com relação aos caracteres válidos permitidos em uma string SEDOL. Sua função deve retornar null em entrada inválida.

## Instructions
## Tests
```yml tests: - text: sedol é uma função. testString: 'assert(typeof sedol === "function", "sedol is a function.");' - text: 'sedol('a') deve retornar null. ")' testString: 'assert(sedol("a") === null, "sedol("a") should return null.");' - text: 'sedol('710889') deve retornar '7108899'. ")' testString: 'assert(sedol("710889") === "7108899", "sedol("710889") should return "7108899".");' - text: 'sedol('BOATER') deve retornar null. ")' testString: 'assert(sedol("BOATER") === null, "sedol("BOATER") should return null.");' - text: 'sedol('228276') deve retornar '2282765'. ")' testString: 'assert(sedol("228276") === "2282765", "sedol("228276") should return "2282765".");' ```
## Challenge Seed
```js function sedol (input) { // Good luck! return true; } ```
## Solution
```js // solution required ```