码迷,mamicode.com
首页 > 其他好文 > 详细

fcc——有关循环的问题

时间:2017-06-11 18:22:42      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:not   sea   turn   out   logs   ges   this   can   outside   

 

技术分享

 

 

You can’t say that you didn’t find a person until you have searehd through the entire contacts array — which would mean the loop has ended and the firstName has not been found in the array. This: return "No such contact"; should be outside of the loop.

技术分享

 

fcc——有关循环的问题

标签:not   sea   turn   out   logs   ges   this   can   outside   

原文地址:http://www.cnblogs.com/Willy-Jane/p/6985617.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!