MCQs > IT & Programming > JavaScript > what is the difference between x++ and ++x?

JavaScript MCQs

what is the difference between x++ and ++x?

Answer

Correct Answer: x++ will return the value of x and then increment, where as ++x will increment the variable first then return its value.

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