我正在学习编码,并且我已经在这个项目上工作了一个多小时。字符串长度属性的代码不正确。
// 我试过:
length.length;
num.toString(); //"6"
length.length; //6
//////练习如下
function exerciseThree(str){
// In this exercise, you will be given a variable, it will be called: str
// On the next line create a variable called 'length' and using the length property assign the new variable to the length of str
var length = 'length';
length.length;
// Please write your answer in the line above.
return length;
侃侃尔雅
摇曳的蔷薇
小怪兽爱吃肉
相关分类