coderwar1

function Person(name){

this.name = name;

}

Person.prototype.greet = function(otherName){

return "Hi " + otherName + ", my name is " + this.name;

}

coderwar注册题目居然都不会,弱爆了

Q1"How can mirrors be real if our eyes aren't real"

"How Can Mirrors Be Real If Our Eyes Aren't Real"

先全部转换成小写,tolowercase,然后把首字母转换成大写;

获取每句话 的首字母split

Q2找出不同的奇偶数

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容