Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does JSON.stringify() do with a function property in an object?

  1. A Serialises it as a string of code
  2. B Omits it from the output
  3. C Throws an error
  4. D Converts it to null
Answer

Omits it from the output

Functions and undefined values are dropped from objects. In arrays, undefined and functions become null instead.

All Javascript MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as