Uncaught ReferenceError: bookmarkBar is not defined code example
Example: Uncaught ReferenceError: bookmarkBar is not defined
Delete the parentId parameter since it does not exist while creating a new folder. The id is generated after folder creation.
Use console.log("Folder id is" +newFolder.id); to get the id. You will be able to view the created folder in Bookmark Manager ->Other Bookmarks.