huluoyang / freecodecamp.cn

随着FCC中文社区的快速发展和更多小伙伴的崛起,此项目已从个人项目升级到团队项目。详情请移步:

Home Page:https://github.com/FreeCodeCampChina/freecodecamp.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

我觉这题目或者解释器有问题。转义符完全无用

Imdaidai opened this issue · comments

Challenge Escape Sequences in Strings has an issue.
User Agent is: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

var myStr; // Change this line
myStr ='\\ \t \t \r \n'; 

返回的值永远等于 myStr ='\ \t \t \r \n'

多谢反馈。
此题考查的是转义字符。
题目要求生成:反斜杠 制表符 退格符 回车符 换行符
上面的结果不符合题目要求,第3个应为退格符,而不是制表符。