Hard time linking js script in wp

I have this in the header:

<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/3d.min.js"></script>

i have this in the footer:

<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/myD3.js"></script>

both are in my js folder

when i go to write some simple test to check it fails & i get this

How could i go about fixing this? i also tried using the link that would use the source for 3d directly from the web

<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>

that also did not work.

Thank you

Never mind…seems like i might have fixed it…but had to add


function cdinl_scripts() {
	wp_enqueue_script( 'd3', get_stylesheet_directory_uri() . '/js/d3.min.js', array(), '1.0.0', true );

add_action( 'wp_enqueue_scripts', 'cdinl_scripts' );

to the functions.php of the child theme.

I swear…wp…it’s always something. mother$*$#$r