WordPress | enqueue_scripts in a child’s theme returns error

The reason being that:

get_template_directory_uri() actually returns the parent’s theme url.

To fix it, I simply concatenated the remainder of the path. In this case, the code became:

// loading menu toggle function | located in the child's theme folder
function menu_toggle_enqueue_script() {
    wp_enqueue_script( 'menu-toggle', get_template_directory_uri(). '-child' . '/assets/js/menu.js');
add_action('wp_enqueue_scripts', 'menu_toggle_enqueue_script');

I figured out the solution on my own and thought I would share it since I did not find this solution anywhere I researched.