MCQs > IT & Programming > JavaScript > What's the output? objects

JavaScript MCQs

Find the correct output of the following JavaScript code.
<html>
   <head>
      <title>objects</title>
      
      <script type="text/javascript">
         var pk = new Object();  
         pk.su = 32;
         pk.au  = 63;
      </script>
      </head>
      <body>
       <script type="text/javascript">
            var as=pk.su + pk.au;
            var num,i=1,j,k;
            num=as+266;
            while(i<=num)
            {
                k=0;
                if(num%i==0)
                {
                    j=1;
                    while(j<=i)
                    {
                        if(i%j==0)
                        k++;
                        j++;
                    }
                    if(k==2)
                        document.write(i);
                }
                i++;
            }
       </script>
  </body>
</html>


Answer

Correct Answer: 19

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it