javascript alphabet.js

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript alphabet.js相关的知识,希望对你有一定的参考价值。

// Description:

// Welcome. In this warmup you are required to, given a 
// string, replace every letter with its position 
// in the alphabet. If anything in the text isn't a letter, 
// ignore it and don't return it. a being 1, b being 2, 
// etc. As an example:

// alphabet_position("The sunset sets at twelve o' clock.")
// Should return "20 8 5 19 21 14 19 5 20 19 5 20 19 1 20 20 
// 23 5 12 22 5 15 3 12 15 3 11" (As a string.)

function alphabetPosition(text) {
  // codes goes here
}

以上是关于javascript alphabet.js的主要内容,如果未能解决你的问题,请参考以下文章

JavaScript介绍

javascript的题。

javascript JavaScript isset()等效: - JavaScript

JavaScript 使用JavaScript更改CSS(JavaScript)

JavaScript之基础-1 JavaScript(概述基础语法)

前端基础-JavaScript的基本概述和语法