Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)

Can anyone help me how I can able to use CDN in JavaScript? I was trying to use tone.js for my script. Below I have attached my html file:

<script src="https://cdnjs.cloudflare.com/ajax/libs/tone/14.0.2/Tone.min.js"></script>

<script src=tonetutorial.js></script>

<body>

    <h1>Music Maker</h1>

    <div class="drums">

        <div class="kick">

            <input type="Checkbox">

        </div>

    </div>

</body>

Any help would be appreciated.

1 Answer

0 votes
by (26.7k points)

Basically, the version of tone.js which you are using have some bug in it. You can use the below one to solve the error:

<script src="https://cdnjs.cloudflare.com/ajax/libs/tone/13.4.9/Tone.min.js"></script>

I hope this will help.

Want to know more about Java? Prefer this tutorial on Java Tutorial.

Want to become a Java Expert? Join Java Certification now!!

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...