Create custom dashboard for plugin

The first parameter to wp_enqueue_script()—in this case, dashboard—is the handle of the script. The handle can be pre-registered using wp_register_script(), and that’s where the script’s path will be set.

dashboard isn’t one of the default scripts that WordPress registers, but it’s entirely possible some other entity has registered it.

Looking at the example code that you’re working from, you can’t just snip the three lines in your question out and use them in your code. You’d need to take the entire sample provided and modify it to suit your purposes.