摘要: Complete the function/method so that it takes CamelCase string and returns the string in snake_case notation. Lowercase characters can be numbers. If 阅读全文
posted @ 2017-09-10 21:00 芒果夏夏 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Complete the method/function so that it converts dash/underscore delimited words into camel casing. The first word within the output should be capital 阅读全文
posted @ 2017-09-09 15:35 芒果夏夏 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 如果我们想创建一个函数实例(传入参数为数组),为其原型对象添加我们自定义的方法,实现两个数组对象对应的项进行相加、相减等。那我们应该怎么做呢? 我们想得到如下的效果: my answer: javascript var Vector = function (components) { this.va 阅读全文
posted @ 2017-09-08 10:59 芒果夏夏 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Description: Write a function that when given a URL as a string, parses out just the domain name and returns it as a string. For example: 使用正则解决该问题比较方 阅读全文
posted @ 2017-09-07 14:57 芒果夏夏 阅读(228) 评论(0) 推荐(1) 编辑
摘要: Description: Write a function called that takes a string of parentheses, and determines if the order of the parentheses is valid. should return true i 阅读全文
posted @ 2017-09-05 20:22 芒果夏夏 阅读(2189) 评论(0) 推荐(0) 编辑
摘要: 用js实现多个目标移动,当鼠标移上去的时候改变宽度,鼠标移出去的时候变回原来宽度。 阅读全文
posted @ 2017-09-04 23:51 芒果夏夏 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Description: My friend John and I are members of the "Fat to Fit Club (FFC)". John is worried because each month a list with the weights of members is 阅读全文
posted @ 2017-09-03 22:13 芒果夏夏 阅读(320) 评论(0) 推荐(1) 编辑
摘要: my answer 使用正则表达式: 空格也可以换成\s表示 阅读全文
posted @ 2017-09-02 17:04 芒果夏夏 阅读(578) 评论(0) 推荐(1) 编辑
摘要: Description: Move the first letter of each word to the end of it, then add 'ay' to the end of the word. my answer:使用正则 other answer: 阅读全文
posted @ 2017-09-02 14:01 芒果夏夏 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Description: The number' '89' 'is the first integer with more than one digit that fulfills the property partially introduced in the title of this kata 阅读全文
posted @ 2017-09-01 11:26 芒果夏夏 阅读(210) 评论(0) 推荐(0) 编辑