chore(i8n,learn): processed translations

This commit is contained in:
Crowdin Bot
2021-02-06 04:42:36 +00:00
committed by Mrugesh Mohapatra
parent 15047f2d90
commit e5c44a3ae5
3274 changed files with 172122 additions and 14164 deletions

View File

@ -2,51 +2,57 @@
id: 59d9c6bc214c613ba73ff012
title: SEDOLs
challengeType: 5
videoUrl: ''
forumTopicId: 302305
dashedName: sedols
---
# --description--
任务:
For each number list of 6-digit [SEDOL](https://en.wikipedia.org/wiki/SEDOL "wp: SEDOL")s, calculate and append the checksum digit. That is, given the input string on the left, your function should return the corresponding string on the right:
对于6位[SEDOL](https://en.wikipedia.org/wiki/SEDOL "wpSEDOL")的每个数字列表,计算并附加校验和数字。
<pre>
710889 => 7108899
B0YBKJ => B0YBKJ7
406566 => 4065663
B0YBLH => B0YBLH2
228276 => 2282765
B0YBKL => B0YBKL9
557910 => 5579107
B0YBKR => B0YBKR5
585284 => 5852842
B0YBKT => B0YBKT7
B00030 => B000300
</pre>
也就是说,给定左侧的输入字符串,您的函数应返回右侧的相应字符串:
```
<pre> 710889 => 7108899 B0YBKJ => B0YBKJ7 406566 => 4065663 B0YBLH => B0YBLH2 228276 => 2282765 B0YBKL => B0YBKL9 557910 => 5579107 B0YBKR => B0YBKR5 585284 => 5852842 B0YBKT => B0YBKT7 B00030 => B000300 </pre>
```
还要检查每个输入是否正确形成尤其是对于SEDOL字符串中允许的有效字符。您的函数应在无效输入时返回`null`
Check that each input is correctly formed, especially with respect to valid characters allowed in a SEDOL string. Your function should return `null` on an invalid input.
# --hints--
`sedol`是一个功能。
`sedol` should be a function.
```js
assert(typeof sedol === 'function');
```
`sedol('a')`应该返回null
`sedol('a')` should return null.
```js
assert(sedol('a') === null);
```
`sedol('710889')`应返回'7108899'
`sedol('710889')` should return '7108899'.
```js
assert(sedol('710889') === '7108899');
```
`sedol('BOATER')`应该返回null
`sedol('BOATER')` should return null.
```js
assert(sedol('BOATER') === null);
```
`sedol('228276')`应该返回'228276'。
`sedol('228276')` should return '2282765'.
```js
assert(sedol('228276') === '2282765');