js练习题(14个)

	



	


	<*node block inline-block table inherit flex grid*> :display类型



	



	
	
		
hello
//- var str=“hello world”; //请编写代码统计str中o和l总共出现了多少次? //(统计两个字母的总次数) // var str = "Hello World"; // var GetTotal = function(str){ // var count = 0; // str.split('').forEach(function (item){ // if(item === "l" || item === "o"){ // count++; // } // }) // return count; // } // console.log(GetTotal(str))

你好

好什么

	


	


	

你好

好什么

你可能感兴趣的:(javascript,前端,开发语言)