"else"
Bootstrap 4.1.1 Snippet by lavan

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html> <body> <p id="text">Clickii me </p> <p id="txt"></p> <script> var text=document.getElementById('text').innerHTML var ak=text.split("") var a="" for(i=0;i<=ak.length-1;i++){ console.log(ak[i]) if(ak[i]=="i"){ a+=ak[i] } else{ console.log("Not found") } } document.getElementById('txt').innerHTML="i"+ "="+ a.length </script> </body> </html>

Related: See More


Questions / Comments: