JavaScript Program to find Biggest of Three Numbers

You are Here:

Find Biggest of Three Numbers

In the following example, we will find which of the following numbers (40, 25, 7) is the biggest number.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <h1>JS Biggest of Three Numbers</h1> <script> var a = 40; var b = 25; var c = 7; document.write("The numbers are a = "+a+", b = "+b+", c = "+c+"<br>"); if((a > b) && (a > c)) document.write("a = "+ a+ " is the biggest number"); else if(b > c) document.write("b = "+ b+ " is the biggest number"); else document.write("c = "+ c+ " is the biggest number"); </script> </body> </html>

Reminder

Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in JavaScript.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author