Traducir

Para ver cada ejemplo:
Haga clic en el enlace de abajo y cargar el ejemplo de esta ventana.
A continuación, para ver el código fuente:
Haga clic en el botón derecho del ratón sobre la ventana y seleccione "Ver código fuente" de la ventana emergente.
Si alguno de los gráficos se utilizan en el guión:
Haga clic en el botón derecho del ratón sobre cada gráfico y seleccione "Guardar imagen como" del menú emergente. (Todos los gráficos se incluyen en el mismo directorio que el ejemplo de Javascript.)
Para volver al Indice:
Haga clic en el botón "Atrás" en la parte superior de su navegador.
5 Function Here is a really simple JavaScript calculator - with just 5 functions! (Add, subtract, multiply, divide, and power) This example can help you see how JavaScript evaluates math functions! Check it out!
Ad Calculator Selling ad banners has just got easier! Just enter two fields of the three fields of information, such as the total cost, CPM (cost per thousand impressions), and exposures (number of ads shown), and the calculator will solve the last field for you.
Adjusted Cost Base Computes the average cost base (or cost per share) for a series of stock or mutual fund purchases. When a sale is entered, the capital gain (or loss) is calculated.
Advanced This is a very comprehensive JavaScript calculator. Although the source code can get quite confusing, it works.
Age Calculator Just enter the birthday you wish to track and JavaScript will display the person's age, down to the second. Displays your age along with the day you were born.
Airport This useful JavaScript calculator will tell you the degrees, Nautical Miles, Statute Miles, and Kilometres between your originating and destination airports. It's got a built-in database of over 150 of the most travelled airports!
Amortization Calculate monthly mortgage payments quickly and easily. Displays an Amortization Table.
Area Calc A simple calculator to determine the area of a square, triangle, rectangle, circle or sphere.
Armor JavaScript can help you figure armor penetration.
Atmosphere JavaScript can help you do atmospheric computations.
Bac Calculates an individual's blood alcohol content based on the quantity of beverages consumed, the alcohol percentage in each drink, the person's weight, and the time spent consuming the drink.
Basic This is a very simple calculator, all done with javascript. Just click the numbers and the operators and use the "=" button to calculate!
Beat Counter A manual Beats per Minute (BPM) counter for DJs. Counts the beats-per-minute of a song by tapping a key or the mouse to the beat of a song. Simply click on the page to start the time then tap any key to the beat.
Best Price Calculates the total cost of an order based on the number of items you want to order. As the total number increases, the cost per item decreases
Binary Converter Computers read and store the decimal numbers we see everyday (1, 5, 10, 100, etc.) as binary numbers, a number of just 1's and 0's. All that you do is enter the decimal number and the script will output the binary equivalent!
Body I like this script because it uses some very ingenious JavaScripting techniques. into the process, it analyzses a persons information (sex, height, weight) and responds with a comment message.
Body Mass Index Just enter your height and your weight, and JavaScript can use a formula created by the Panel on Energy, Obesity, and Body Weight Standards to figure out your Body Mass Index. This index classifies you into one of several categories, from underweight to desirable to obese.
Bubble Sort Sorts using the bubbleSort method. Simply enter a list of numbers into the text box and click sort.
Calculator Just a nice, simple, and clean calculator. You can even change its color. A perfect example of JavaScript simplicity!
Calories JavaScript can help you figure how many calories you have burned.
Circle Solver Can't remember the formulas for the other two parts of a circle (area, diameter, or circumference) when you only know one? To the rescue is Circle Solver. Enter the circle area, diameter, or circumference and it will solve for the other two!
Circumference JavaScript can help you figure the circumference of a circle when you enter the radius.
Compound Interest Use JavaScript to calculate compund interest. Warns about doubtful data.
Cosine Enter the adjacent and hypotenuse angle values and JavaScript will solve the cosine angle for you.
Date Difference Enter two dates (including the time!) and this script will display the number of weeks, days, hours, minutes, and seconds between the two. The seconds field is optional, too. For an example, try entering your birthdate and compare it to today's date.
Day Of Week Calculate what day of the week a given date was. It works for leap years and also tells you whether the date is in the past future or today.
Distance Speed Time Calculate the time, distance, or speed given any two of the pieces of information.
Dog Years This is a practically useless script. Convert your age to dog years. (Your age / 7) But, it's helpful for people beginning JavaScript to look at.
Download This calculator will help you estimate how long it will take to download a file at any of a number of modem speeds.
Driving Use JavaScript to estimate the driving distance between U.S. cities.
Expression Solver Just enter a math expression (with +, -, *, and / signs) and this script will evaluate the expression for you.
Factors Use JavaScript to find out if a number entered is odd or even and the factors of that number.
Fibonacci Displays the Fibonacci Sequence of Numbers as entered by the user. Warning: This is very processor intensive, do not enter a large number.
Field Depth For all you photography enthusiasts out there, this script makes it a breeze to determine the field depth and amount that will be in focus in a photograph. Includes other measurements such as nearest and furthest points of focus, too.
Function Grapher Graphs any function you enter on the scale of your choice, assuming you use the correct JavaScript syntax. For example, to use Cos x, use Math.cos(x). Or, for x^2, use Math.pow(x, 2), etc.
Gpa This is a very useful script to figure out your class GPA. Just enter the letter grade for each class.
Graphing Function Enter the X-Y coordinates for a function and this script will give you the graphing formulas, including Formula, Slope, Y-intercept, Parallel and Perpendicular lines.
Group Work Ever had to work with another person to complete a task? This calculator will tell you how long it would take two people to complete the task if you know how long it would take each person to complete the task individually.
Horsepower Enter your vehicle's quarter mile time (assuming you know it) and vehicle weight and this JavaScript program will display your car's estimated horsepower.
Income Estimates your weekly, bi-weekly, monthly, and yearly income. Very useful when job hunting when offered an income per hour, month, or year. The tax bracket numbers are adjustable with each year's income tax levels.
Interest Use JavaScript to find out just how much that new house or car is going to cost you each month. Enter values into the fields below to find out how much each monthly payment would be with the given number of payments, interest rate, and loan amount.
Kinetic Energy Solve any of three variables in a Kinetic Energy equation using this script. Simply enter two of the three values and submit to find the value of the third variable.
Landscape Grapher JavaScript 3D terrain grapher which creates virtual landscapes using three-dimensional fractal geometry, random numbers, and a simple mathematical formula. "s" indicates under sea-level. Just hit reload to get a new landscape.
Lap Time Calculates the average lap split time required to finish a race in the time you enter.
Lcm And Gcd Calculate the Least Common Multiple and Greatest Common Divisor of two numbers using this short script.
Leap Year Is it a leap year? What about in 1900? Get your leap year facts straight with this leap year calculator. Just enter the year you are interested in and the script reports whether it is a leap year or not. Or, enter a range of years and JavaScript will display all the leap years in that range.
Male Body Calculates a man's ideal body measurements based on his wrist circumference.
Miles Per Gallon Computes the miles per gallon of your car via the miles traveled and the number of gallons used. Also, if you enter the cost per gallon and how many miles you drive a day, it will estimate your monthly and yearly gas expenses.
Money Counter Enter the number of bills and coins and this script will calculate the total amount of money you have. All blank entries are ignored. Input field validation is also included -- try entering a non-digit into a field. Also, this script is a good demonstration of a JavaScript return function in use.
Parabola Grapher Enter a parabolic equation, like 5x^2 + 18x + 27 and this calculator will determine all the vital information about the graph. And, a rough graph of the curve is available.
Paycheck Entering your pay rate and the number of hours you worked and optionally any overtime hours and pay rate, your own tax rate, and other deductions. Find out where your money comes from and where it's going.
Percent Don't waste another minute dealing with percent problems. This script will solve both of these for you, just enter the values!
Percent Of Increase Enter two numbers and JavaScript will help you determine the percent of increase. This is a perfectly simple example of using a JavaScript return function.
Periodic Table Besides a very organized Periodic Table, this script will tell you lots of information about any periodic element you click on.
Phone Text Have you ever wondered if your phone number has a memorable text equivalent, like 555-HELP? Just type it in and this script will generate all possible combinations, just pick your favorite one and tell the world how to reach you.
Phone Bill Does it ever bother you how much a long-distance phone call is going to cost, after you hung up? With this script, all you have to do is enter the amount per minute, and any initial amount, then click start when the call begins and see the total charge at any time!
Polygon Figure out the number of sides, measure of each exterior angle, and the measure of the interior angle of any polygon. Simply enter one of the three pieces of information!
Pregnancy Enter the mother's pregnancy information into this calculator and JavaScript will provide an estimated conception date, birth due date, and an estimated current fetal age. Great for all those mothers-to-be!
Prime Number Enter a number and JavaScript can instantly tell you if it is a prime number or not.
Pythagorean One of geometry's most useful formulas, the Pythagorean Theorem, can be applied to the numbers you enter in JavaScript! Just enter 'A' and 'B' and the script solves for 'C.'
Quadratic Solver Why didn't I have one of these during high school math? Just enter the coefficients for the quadratic 'Ax^2 + Bx + C = 0' equation and JavaScript will output the solutions (if they are not imaginary!).
Quadratic Solves quadratic equations for inputted coefficients. Answers can be either real or complex.
Radioactive Use JavaScript to find how much radioactive material remains after a given time.
Random Distribution Generate normally distributed random numbers by entering a mean value and standard deviation. Uses the normal law of error to determine an events given probability.
Room Use JavaScript to find the approximate room size you'll need depending on your room setup and arrangement.
Round A simple function to round a decimal number to any number of decimal places you want just by passing it different values.
Running Allows runners to calculate their time, distance covered, or pace by entering the other two values. Distance and pace can be converted between various measurements. A great 3-in-1 script for runners!
Savings Estimator Enter how much you can afford to save each month, how long you can save this amount, and the interest rate you can get on your savings and this script will display your total savings.
Scientific This is a very cool JavaScript calculator that does many advanced functions - cosine, sine, tangent, square root, exponents, etc.
Sine Enter the opposite and hypotenuse angle values and JavaScript will solve the sine angle for you.
Square Root Allows you to find the value of a number squared or that number's square root.
Stock Deciding when to buying and sell stocks is difficult enough - figuring the profit or loss from that trade shouldn't have to be. Just enter the number of shares, your purchase price, your selling price, and the commission fees for the trade and this script instantly figures your resulting profit or loss after commission fees.
Straight Distance Enter a coordinate pair for each the starting and ending points according to the Cartesian coodinate system. The script will calculate the straight line distance between the two points.
Tangent Enter the opposite and adjacent angle values and JavaScript will solve the tangent angle for you.
Tax JavaScript helps your to calculate the before and after tax prices for purchases. Very easy to use. Just put into the price, the tax, and hit compute! It's all figured for you!
Top Speed Rpm Enter the diameter of the tire and the RPM value of the motor and the script will tell you the top speed without any weight on the Tires.
Wavelength Assists ham radio operators in converting a frequency to its wavelength in feet or inches. Other uses include acoustic measurement and adjustment, microphone placement, room tuning, and speaker positioning.
Win Calculator Always been fond of the calculator within Microsoft Windows? This JavaScript mimics the Windows calculator in appearance and function. Everyone, including Macintosh computer users, can now their own Windows Calculator!
Wind Chill Wind Chill is a mysterious and often misunderstood phenomenon. This script describes what the wind chill factor really is and offers a form to calculate the wind chill factor when given the air temperature and wind speed.
World Population Estimates the current world population based on US census data and the world growth rate. Not exactly precise, but neat anyways.
X By X This is a very simple, very limited calculator that only does multiplication. This script is perfect if multiplication is all you are looking for.