MCQs > IT & Programming > JavaScript > Consider the following variable assignments: var a = 1; var b = 2; For the values set above the operation (a & b) returns the same result as:

JavaScript MCQs

Consider the following variable assignments: var a = 1; var b = 2; For the values set above the operation (a & b) returns the same result as:

Answer

Correct Answer: ((a%2)&&(b%2))&&((Math.floor(a/2)%2) && (Math.floor(a/2)%2))

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