Code examples for the Javascript tag - developer knowledge base - page 4 (185)

API for JavaScript: an example and instructions for creating a simple API using JavaScript and JQuery library.
This article shows how to add JavaScript comments to your website, with an example to get you started.
Learn how to create an interactive image gallery in HTML & JavaScript, complete with an example!
This article explains how to create the classic game of Tic-Tac-Toe using JavaScript, including a full example.
Learn how to capitalize the first letter of a string in Javascript with an example.
Javascript callback functions allow easy reuse of code. Learn how to create one with an example.
Learn how to add color to text with Javascript! Follow this simple example to get started.
Learn how to use JavaScript to create a transparent background with an example.
Learn how to create smooth scrolling pages with JavaScript, complete with a working example!
This article explains how to use JavaScript to create page refreshes with a code example.
How to create a simple audio player on JavaScript with an example and analysis of code.
This article explains how to create a triangle in JavaScript, complete with an example code.
Learn how to create a JavaScript burger menu with a step-by-step example. Create a modern, responsive, and interactive menu for your website!
A review of how to use JavaScript to sort tables with an example of code.
"Build an efficient REST API for your JavaScript apps with this step-by-step guide & an example code to get you started!"
Use single/double quotes to add strings to a JavaScript variable. Example: let str = 'Hello World!';
Learn how to create a chessboard in JavaScript with a step-by-step example.
Learn how to create a smooth page scroll animation with JavaScript, plus a code example to get you started.
Learn how to generate a random color in JavaScript with an example.
Learn how to add two numbers together using JavaScript, with an example for beginners.