JavaScript Practice Exercise Two

Question 1 :
Fill in the blank for declarying variable score in backticks (`)

let score = 50;
let content = ` The score of winning team is: { score `
console.log(content);

Expected Output => The score of winning team is: 50
Question 2 :
Fill in the blank with arithmetic operator to get square of a.
          let a = 5; 
          let b = 2; 
          var mySquare = a  b
Question 3 :
Fill in the blank with arithmetic operator to store remainder of a and b in variable remainder.
          let a = 5; 
          let b = 2; 
          var remainder = a  b
Question 4 :
Fill in the blanks to show following output

Output: The sum of two values is : 15


            x = 12;
            y = 3;
            z = x + y
            console.log("",)
          
Question 5 :
What will be the output of following code if user selects 2 in prompt box
            x = prompt ("Enter a number between 1 to 10")
            
            if (x === 2) {
              console.log("Correct")
            } else {
              console.log("Wrong")
            }
          

Output:
Question 6 :
Fill in missing property & attribute to link JavaScript script.js file externally in head
<script = "script.js" > </script>
Question 7 :
Fill in the blank to access following element in html

<p id='para'> I am the one you are supposed to fetch </p>


Output : document. ('para')
Question 8 :
Fill in the blank to access following element in html

<p class='some'> I am the one you are supposed to fetch </p>


Output : document. ('.some')
Question 9 :
Fill in the blank to access following element in html

<p id='para' class='some'> I am the one you are supposed to fetch </p>


Output : document. ('p')
Question 10 :
What type of data is stored in variable myAge if the user enters 20 in prompt box

let myAge = prompt("Please enter your age");

console.log(typeof myAge);


Output :