FreeCodeCamp学习--Confirm the Ending
来源:互联网 发布:美容软件app推荐 编辑:程序博客网 时间:2024/06/03 12:28
Confirm the Ending
检查一个字符串(str
)是否以指定的字符串(target
)结尾。
如果是,返回true;如果不是,返回false。
function confirmEnding(str, target) { // "Never give up and good luck will find you." // -- Falcor var s=target.length; var s1=str.length; if(str.substr(s1-s)==target) return true; return false;}confirmEnding("Bastian", "n");
Confirm the Ending
检查一个字符串(str
)是否以指定的字符串(target
)结尾。
如果是,返回true;如果不是,返回false。
0 0
- FreeCodeCamp学习--Confirm the Ending
- Confirm the Ending
- FCC--Confirm the Ending(确认字符串的结尾)
- JavaScript实现-检查字符串结尾-Confirm the Ending
- FCC算法:七、检查字符串结尾--Confirm the Ending
- freecodecamp学习--Find the Longest Word in a String
- FreeCodeCamp(一)学习笔记
- 编程学习网freecodecamp
- FreeCodeCamp学习--Chunky Monkey
- FreeCodeCamp学习--Slasher Flick
- FreeCodeCamp学习--Mutations
- FreeCodeCamp学习--Falsy Bouncer
- FreeCodeCamp学习--Caesars Cipher
- freecodecamp JavaScript学习(-)
- freecodecamp JavaScript学习(二)
- freecodecamp JavaScript学习(三)
- freecodecamp JavaScript学习(四)
- freeCodeCamp-show the loacl weather
- DL入门
- 竖式迷
- IT开发资源网站大全
- JS的两个内置对象
- MFC单文档之快速创建多个对话框类
- FreeCodeCamp学习--Confirm the Ending
- spring 第三章 高级装配 小结
- FFmpeg学习—android 编译 FDK-AAC 库
- P1087 FBI树
- MapReduce 2.0应用场景、原理与基本架构 | mapreduce顺序图 + mapreduce动图
- 基于视频压缩的实时监控系统-A1:产品设计与规划
- Spring MVC学习(三)-------DispatcherServlet详解
- Mininet安装使用
- 京东2017校招笔试编程题iOS开发工程师