Mark As Completed Discussion

One Pager Cheat Sheet

  • You can create a simplified version of the JSON.stringify() method to correctly handle different data types and values in order to successfully "translate" them into JSON strings.
  • We bold implemented a stringify method that handles different data types, such as functions, strings, numbers, booleans, dates, arrays, and objects, returning the corresponding strings or null as needed.

This is our final solution.

To visualize the solution and step through the below code, click Visualize the Solution on the right-side menu or the VISUALIZE button in Interactive Mode.

JAVASCRIPT
OUTPUT
:001 > Cmd/Ctrl-Enter to run, Cmd/Ctrl-/ to comment

Great job getting through this. Let's move on.

If you had any problems with this tutorial, check out the main forum thread here.