How to write "Hello World" using jQuery

The first step of getting familiar with a new language is to write the simple “Hello World” program in it. jQuery is a lightweight JavaScript library that has simplified client-side webpage development by adopting a write less, do more ideology.

svg viewer

Library

You need to import this library:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js">

Code

In the code below, the temp ID is used to write “Hello World” using the HTML function:

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved