How to use a external js file in ionic4

i want to use use a external js cdn in my ionic 4 project
please help me out
Thanks in advance

Hi use this code in the index.html file in the head tag:

<script src="assets/js/test.js"></script>

Hope this will help!