【第5周 js数据类型】toUpperCase()括号里面可以写内容吗?
问题描述:
toUpperCase()括号里面可以写内容吗?
相关截图:

相关代码:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>toUpperCase和toLowerCase</title> </head> <body> <script> var str="Never deter till tomorrow that which you can do today"; // var index = str.substring(17,25); var strNew=index.toUpperCase(); // var upperStr= 'Never deter till '+ strNew + ' that which you can do today'; document.write(upperStr); </script> </body> </html>
7
收起
正在回答 回答被采纳积分+1
1回答
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星