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找出不同的奇偶数