算法52 ◉‿◉ 输出26个字母(不许用数组。。。)
http://xxx.fishc.com/forum/201705/05/225545py2j222x5z6x55n2.png按照提示,完成代码,秀秀你的编程能力!
不许看答案,否则打屁屁
程序分析:
输出26个字母,不要使用下面的数组。
“Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","X","Y","Z");”
源代码:
**** Hidden Message *****
○面试题索引贴●
如果喜欢,请订阅{:10_303:} :
HTML5 - 庖丁解牛 + JavaScript - 庖丁解牛
1 <body>
2 <script>
3 function ascii(){
4 for(i=65;i<=90;i++){
5 document.write(String.fromCharCode(i)+"<br/>");
6 }
7 }
8 ascii();
9 </script>
10 </body>
~ window.onload = function(){
for(var i = 0;i < 26;i++){
document.write(String.fromCharCode(65+i) + ' ');
}
}; String.fromCharCode() {:5_90:} afs 321 爱的擦拭擦拭先擦数学奥赛 嘿嘿
1
看一下 看下答案 hi
看看 1
页:
[1]