How to add a child table after creating a new document using frappe.new_doc() in JavaScript?

Please check the reference and video: