Javascript quiz answer part 2

in javascriptquiz •  4 years ago 

( Question 2 )

1.)

 var c = 0 ; // it is a variable that will be increased for each term

      for (var i = 2000 ; i  >=  -2000 ;   i = i - 200)
    {
     console.log(i);
     c++; // 
     }

     console.log(c);



2.) "Hello @sct.blurt , You have more than 2151170 blurt power". to remove this content from a div on clicking a button.

output before clicking :

Screenshot from 2020-11-07 23-18-56.png

output after clicking the buton :

Screenshot from 2020-11-07 23-18-59.png

Full Code :

 <!DOCTYPLE HTML>
<html>
<head>
<meta charset="utf-8">
    <title>DIV AND SPAN</title>
<style>

       .boxliliput{
       background:radial-gradient(#187 , #111);
       
       
        color: White; 
        font-weight:600;
        font-size: 32.22px;
        height: 50%;
        background-color: #232A34;
        width: 70%;
        padding: 25px 10px;
        border-width: 10px 7px;
           border-color: #96B8A8;
           border-style: ridge;
           border-radius: 20px;         
    } 
  #b1{
  background: radial-gradient(rgb(39, 2, 2) ,black);
margin: 25px 0 0;
padding: 15px;
color: white;
border: none;
border-color: rgba(29, 0, 17, 0.932);
border-radius: 12px;
width: 50%;
font-family: cursive;
font-size: 18px;
font-weight: 900;
transition: all ease .5s;
}
  
</style>
</head>
<body>
 
<div class="boxliliput">
<p> <b>DESCRITION :</b>    </p> 
    <p id="p2"> "Hello @sct.blurt , You have more than 2151170 blurt power".</p>
    </div><br/>
    <button id="b1">Remove</button>
   
  <script>
       document.getElementById("b1").onclick=function()
           {
        document.getElementById("p2").innerHTML="<p></p>"
           }
      
    
    
    </script> 
 </body>
 </html>



All the answers have been posted , Thanks to all for participating.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!
Sort Order:  

I cant understand whats going on with this post but still can feel that something good is happening here

actually last week i held a quiz for JavaScript and these are the solution to the questions asked in the quiz.

I don't know what JavaScript is. Don't bother about my comment. I was just going through good posts. JavaScript is programming language, right? Its difficult to have an idea on these critical things by a literature student. Keep on sharing your learning for this #blurt community success. Thanks.

Congratulations! This post has been upvoted by the @blurtcurator communal account,
You can request a vote every 12 hours from the #getupvote channel in the official Blurt Discord.Don't wait to join ,lots of good stuff happening there.