var cat = prompt("What Do You Want To Tweet??!").length;
if (cat >= 140) {
confirm("Sorry but your Tweet was over the 140 character limit by: " + cat - 140);
confirm("You need to resubmit a Tweet that is not over the 140 Character limit");
} else {
confirm("Success, Your Tweet has been posted!");
}
我已经尝试了一堆不同的东西,但这个错误楠始终是我的最后一关,我不能得到通过。我非常肯定,猫变数不被视为一个数字,但我不知道如何让电脑看到它作为一个数字,我非常确定,我只需要知道这样做的基本知识。我也尝试过移动长度,但无济于事!字符计数器和限制器得到一个错误楠
感谢这么快的评论,我明白我为什么错了。如果我的任务需要我在确认框中有回复,我会记住你所说的内容。 :) – ShowmenTv 2014-09-05 02:02:50