DEV Community

Avinashd
Avinashd

Posted on

Js in bits - 1(script)

Learning js should be fun. It is fun if it's easy.
I tried my best in writing this, to understand it the easy way.

<script>

To write js in html, we can use script tag.

Image description

Other ways to use script tag
1, Write javascript in a .js file and link it with src
2, Add a CDN link to src inside script tag

Image description

Leave y'r thoughts....

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay