Hi I spend hours to figure out the problem why my own javascript doesn't work even in html output it seems loaded. I want to share it.
with these line of code
wp_enqueue_script( 'myscrip', plugin_dir_url( __FILE__ ) . 'js/test.js',array('jquery'),NULL);
it works properly problem was in my script file. I used jQuery "$" notation in my script and when I changed it to "$"->"jQuery" all worked normmaly.