Print Design Templates Take a look at these creative Graphic Design templates for brochures, flyers, newsletters, stationery, postcards, ads, menus and posters for a variety of businesses.
Invoicing 4 Freelancers A complete, secure, online billing application that maintains hourly service billing, flat fee billing and recurring charges. Integration with Authorize.Net and other leading payment gateways provides hands-free recurring billing with a sophisticated CRM system.
Free Design Magazines Browse through our extensive list of free Graphic Design, Web Design, Business, Computer, and Computer Graphics magazines, white papers, downloads and podcasts to find the titles that best match your skills and interests; topics include management, marketing, operations, sales, and technology. Simply complete the application form and submit it. All are absolutely free to freelance professionals who qualify.
Suggested Links Photoshop Tutorials
Logo Designer's Logos
Web Design Tools List
Layouts & Templates Directory
Web Design & Graphic Design Blog
Photoshop, Flash, 3D Studio Max Tutorials
Web Designers & Developers
Crafts for Kids
Photoshop Tutorial Man
Tutorial Guide -- Free Webmaster Tutorials
Design Contests
How to Draw
Work From Home Job Search
OTHER SITES WE OWN
AllFreelance
Graphic Design Resources Directory
Graphics Tutorials Directory
Social Networking Articles
Design Sites Up
All Freelance Work & Portfolios
Graphic Design Community
Education & Learning Directory
![]() |
home > Web Design Tutorials > Programming Tutorials > Javascripting Articles > Javascript Mathematics & Arithmatics & Numbers Coding Tutorials
JavaScript Math Object
In this tutorial you learn JavaScript Math Object…
The Math object
Programmers are often typecast as good mathematicians. While this is in fact the case with me, I doubt it applies to everyone (small joke). As the scene erupts in a sea of fury, lets just settle on the fact that every mathematician needs a calculator some
JavaScript Math Object
The Math object allows you to perform common mathematical tasks.
round() Example
How to use round().
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
||
random() Example
How to use random() to return a random number between 0 and 1.
max() Example
How to use max() to return the number with the highest value of two specified numbers.
min() Example
How to use min() to return the number with the lowest value of two specified numbers.
The Math Object
The Math object of JavaScript allows you to perform certain calculations by using method functions of the Math object. Also, it provides a few constants such as pi. The easiest way to get a value is to define a variable and set its value to a property or
Getting Random
The random() method function of the Math object allows you to get random numbers for various uses in your scripts. You can make a random quote generator or have another type of random script. The only trick is knowing how to get a random number within the
Math Variables
This page will not only show you how to use numeric values to perform computations with JavaScript, but it will also test your basic math skills.
Creating Random Numbers
This example introduces you to random numbers. JavaScript uses the date and time when it generates a random number.
Fun with Random Numbers
We can use JavaScript to generate random numbers, that is, numbers that are different each time the script is run. This allows us to do all sorts of fun stuff, such as…
Random Numbers
Use this script to pick 16 random numbers. Lottery, for fun, whatever.
Roman Numeral Converter
Having trouble converting to Roman numerals? This script should do the trick!
Generating Random Numbers in JavaScript
JavaScript provides a vast array of mathematical functions that are available through the in-built Math object. The randomizer is also a mathematical function. In its simplest form the random function returns a value between 0 and 1.
Random Text Display Using JavaScript
Our aim is to randomly display a text string from a set. It involves the following steps…
Random Image Display Using JavaScript
The steps involved in randomly displaying an image from a set are very similar to those used for displaying random text strings.
The match() method
The match() method takes a regular expression as a parameter and returns an array of all the matching strings found in the string given.
The Math-object
If you need to do mathematical calculations you will find some methods in the Math-object which might help you further…
The Math Object
The Math object is really a function library organized as an object. It is used to store methods that perform various mathematical functions. Almost all Math methods are class methods and return a value of some sort.
Math Object
The Math object allows you to perform common math related tasks…
Random Text Display
Display random text on your web site using this very simple script…
Random Image Display
Display random images on your web site using this very simple script…
Random Banner Display
Display random banners and links on your web site using this very simple script…
Mathematical Functions
Javascript provides access to a lot of common mathematical functions as well as some of the more common irrational numbers (e, pi, square root of 2 etc.) using the Math class. This class works a bit differently from…
OBJECT: Math
The Math object is a top-level, built-in JavaScript object which can be accessed without using a constructor or calling a method.
JavaScript Math Object
The Math object can be used to perform mathematical tasks…
JavaScript Math Object Functions
The Math object contains 16 functions. In this section you will see these 16 functions in some small examples. Please take a look at the math object, if you need more information about that. All functions are used with the Math object…
RECENT ARTICLES from Graphic Design BloG
Starting a Graphic Design Business: Part II
You’re in the Money
In our last post we identified some of the advisors you’ll need on your team as you start a graphic design business. Lucky for you, the logistical fun doesn’t end there. Armed with your graphic design education and ready to take on your first project, you’ll first need a pricing structure. Design [...]
![]() |
![]() |
|
![]() |
![]() |
|
Got (Photoshop) Gadgets? Part II
More Cool Gadgets
This week wraps up our series on Photoshop gadgets for websites. These gadgets are quite generic and can be used in many different sorts of applications. The accompanying tutorials are straightforward and detailed. The more difficult ones will take more time to build, but the results will be worth it. Enjoy!
Digital MP3 Player
This [...]
Got (Photoshop) Gadgets? Part I
Spruce Up Your Website
Are you tired of the same old button gadgets everyone else uses on their websites? If you are, here are a few gadgets you can create in Photoshop that may bring some bling to your webpages. A big thanks to Hongkiat for assembling most of these tutorials.
Flash Drive Gadget
For all those tech [...]
Things You Won?t Hear About Successful Web Designers - Part II
Got Customers?
Take the case of “Jesse,” a brilliant web designer. It’s obvious that he has serious skills in design and can run circles around other web designers when it comes to talent. But oddly enough, he doesn’t have many customers.
On more than one occasion he tells his customers that he is “overworked” and complains about [...]
Things You Won?t Hear About Successful Web Designers - Part I
What You Need
If you ask most employed web designers what factors were most important in their development as a web designer you’ll probably hear “experience” and “school” at the top of their lists.
Outside of coding skills there are other elements that make a web designer successful. The following traits are things that you won’t usually [...]
How to Select a Good Web Design College
Some Guidelines and Tips
If you are seriously considering going to college for your graphic design education or web design degree you already know that there are no shortages of available colleges, universities, and online education centers that constantly vie for your attention. But how can you distinguish between the good schools and the bad ones? [...]
Twas the Night Before Debugging
Happy Holidays!
We just wanted to say thanks for visiting this site and to wish everyone a restful and happy New Year. We’ve done a little parody of a famous poem for all you web designers out there. We hope you like it.
Twas the Night Before Debugging
by Frank Ling aka “Admin”
Twas the night before debugging when [...]
All Web Design Resources is a Directory & Blog Full of Tools for Web Site Designers
All Web Design Resources Portal is a Web Site Design education directory with resources & articles for Graphic Designers, Web Developers, & Web Designers including a Web Design forum, blog, graphics software tips, web development resources, web programming tools, web design jobs, advice for new web designers about web design schools and education as
well as tips for freelance web design business owners, and much more.