Calculate Your Weight on Other Worlds Answer Key

Calculate Your Weight on Other Worlds | Gravity Calculator :root { –primary-color: #004a99; –secondary-color: #007bff; –success-color: #28a745; –light-gray: #f8f9fa; –dark-gray: #343a40; –white: #ffffff; –border-color: #dee2e6; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(–light-gray); color: var(–dark-gray); line-height: 1.6; margin: 0; padding: 20px; } .container { max-width: 960px; margin: 0 auto; background-color: var(–white); padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } header { text-align: center; margin-bottom: 30px; border-bottom: 1px solid var(–border-color); padding-bottom: 20px; } h1, h2, h3 { color: var(–primary-color); margin-bottom: 15px; } h1 { font-size: 2.5em; } h2 { font-size: 1.8em; border-bottom: 2px solid var(–primary-color); padding-bottom: 8px; } h3 { font-size: 1.4em; color: var(–secondary-color); } .calculator-wrapper { background-color: var(–white); padding: 25px; border-radius: 8px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08); margin-bottom: 30px; } .input-group { margin-bottom: 20px; text-align: left; } .input-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(–primary-color); } .input-group input[type="number"], .input-group select { width: calc(100% – 20px); padding: 10px 12px; border: 1px solid var(–border-color); border-radius: 4px; font-size: 1em; box-sizing: border-box; } .input-group input[type="number"]:focus, .input-group select:focus { outline: none; border-color: var(–secondary-color); box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); } .input-group .helper-text { font-size: 0.85em; color: #6c757d; margin-top: 5px; display: block; } .error-message { color: #dc3545; font-size: 0.8em; margin-top: 5px; min-height: 1.2em; /* Reserve space to prevent layout shifts */ } .button-group { display: flex; justify-content: space-between; gap: 10px; margin-top: 25px; } button { padding: 12px 20px; border: none; border-radius: 4px; font-size: 1em; font-weight: 500; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; } button.primary { background-color: var(–primary-color); color: var(–white); } button.primary:hover { background-color: #003366; transform: translateY(-1px); } button.secondary { background-color: var(–secondary-color); color: var(–white); } button.secondary:hover { background-color: #0056b3; transform: translateY(-1px); } button.reset { background-color: #6c757d; color: var(–white); } button.reset:hover { background-color: #5a6268; transform: translateY(-1px); } button:active { transform: translateY(0); } .results-container { background-color: var(–primary-color); color: var(–white); padding: 25px; border-radius: 8px; margin-top: 30px; text-align: center; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2); } .results-container h3 { color: var(–white); margin-top: 0; margin-bottom: 15px; } .primary-result { font-size: 2.5em; font-weight: bold; margin-bottom: 10px; padding: 10px; background-color: rgba(255, 255, 255, 0.2); border-radius: 4px; display: inline-block; } .intermediate-results div { margin-bottom: 8px; font-size: 1.1em; } .intermediate-results span { font-weight: bold; } .calculation-explanation { font-size: 0.9em; margin-top: 15px; opacity: 0.8; } .chart-container { margin-top: 30px; padding: 25px; background-color: var(–white); border-radius: 8px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08); } .chart-container h3 { text-align: center; margin-bottom: 20px; } canvas { display: block; margin: 0 auto; max-width: 100%; height: auto !important; /* Prevent canvas scaling issues */ } .table-container { margin-top: 30px; overflow-x: auto; } table { width: 100%; border-collapse: collapse; margin-top: 15px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08); } thead { background-color: var(–primary-color); color: var(–white); } th, td { padding: 12px 15px; text-align: left; border: 1px solid var(–border-color); } th { font-weight: 500; } tbody tr:nth-child(even) { background-color: #f2f2f2; } .article-content { margin-top: 40px; background-color: var(–white); padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .article-content p, .article-content ul, .article-content ol { margin-bottom: 20px; } .article-content li { margin-bottom: 10px; } .article-content a { color: var(–secondary-color); text-decoration: none; } .article-content a:hover { text-decoration: underline; } .faq-section .faq-item { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px dashed var(–border-color); } .faq-section .faq-item:last-child { border-bottom: none; } .faq-section h3 { margin-bottom: 5px; cursor: pointer; color: var(–primary-color); } .faq-section p { display: none; /* Initially hidden */ margin-top: 5px; font-size: 0.95em; color: #555; } .faq-section .active + p { display: block; /* Show when active */ } .internal-links-section ul { list-style: none; padding: 0; } .internal-links-section li { margin-bottom: 15px; padding: 10px; border-left: 4px solid var(–primary-color); background-color: var(–light-gray); border-radius: 4px; } .internal-links-section a { font-weight: bold; font-size: 1.1em; } .internal-links-section p { margin-top: 5px; font-size: 0.9em; color: #555; } #copyStatus { margin-top: 10px; font-size: 0.9em; color: var(–success-color); opacity: 0; transition: opacity 0.5s ease; } #copyStatus.visible { opacity: 1; }

Calculate Your Weight on Other Worlds

Discover how gravity changes your weight across the solar system and beyond!

Weight on Other Worlds Calculator

Enter your weight as measured on Earth.
Mercury Venus Earth Moon Mars Jupiter Saturn Uranus Neptune Pluto (Dwarf Planet) Sun Choose the planet or moon you want to calculate your weight on.

Your Calculated Weight

Weight on Body: kg
Gravity Factor:
Body:
Weight on a celestial body = Your Earth Weight (kg) × (Body's Surface Gravity / Earth's Surface Gravity)
Copied!

Weight Comparison Across Celestial Bodies

Surface Gravity Data

Celestial Body Surface Gravity (m/s²) Relative Gravity to Earth (%)
Mercury 3.70 38%
Venus 8.87 90%
Earth 9.81 100%
Moon 1.62 17%
Mars 3.71 38%
Jupiter 24.79 253%
Saturn 10.44 106%
Uranus 8.69 89%
Neptune 11.15 114%
Pluto (Dwarf Planet) 0.62 6%
Sun 274.0 2793%

What is Calculate Your Weight on Other Worlds?

The "Calculate Your Weight on Other Worlds" concept, often referred to as a gravity calculator or planetary weight calculator, is a tool that demonstrates how your perceived weight changes based on the gravitational pull of different celestial bodies. Essentially, it answers the fascinating question: "If I weigh X on Earth, how much would I weigh on the Moon, Mars, or Jupiter?" This is not about a change in your mass (the amount of matter in your body), but a change in the force exerted on that mass by the planet's gravity.

Who should use it:

  • Students and Educators: For learning about physics, gravity, and astronomy in an engaging way.
  • Science Enthusiasts: Anyone curious about the cosmos and how different environments might affect us.
  • Writers and Creatives: To add scientific realism to fictional space travel scenarios.
  • Anyone who has ever wondered: The fundamental human curiosity about our place in the universe and the forces that shape it.

Common misconceptions:

  • Changing Mass: People sometimes think their mass changes. Mass is constant; weight is the force of gravity acting on that mass.
  • Feeling "Lighter" vs. "Heavier": While we talk about weight, it's crucial to understand it's a force. On bodies with weaker gravity, you'd feel lighter; on those with stronger gravity, you'd feel heavier.
  • Earth's Gravity is Universal: Many forget that Earth's gravitational pull itself varies slightly across its surface, though this variation is minor compared to differences between planets.

Understanding your weight on other worlds is a fun way to grasp the fundamental principles of gravity and planetary science.

Weight on Other Worlds Formula and Mathematical Explanation

The calculation for determining your weight on another celestial body is based on the principle of universal gravitation, simplified for surface-level comparison. Your weight is directly proportional to the gravitational acceleration at the surface of the body.

The core formula used is:

Weight on Body = Your Earth Weight × (Surface Gravity of Body / Surface Gravity of Earth)

Let's break down the variables and the mathematical derivation:

Step-by-step derivation:

  1. Weight as Force: On Earth, your weight (W_earth) is approximately your mass (m) multiplied by Earth's surface gravitational acceleration (g_earth). So, W_earth ≈ m × g_earth.
  2. Mass is Constant: Your mass (m) is a fundamental property of your body and remains the same regardless of location.
  3. Weight on Another Body: On another celestial body (let's call it 'Body'), your weight (W_body) will be your mass (m) multiplied by that body's surface gravitational acceleration (g_body). So, W_body ≈ m × g_body.
  4. Substitution: Since mass (m) is constant, we can express it from the Earth weight equation: m ≈ W_earth / g_earth.
  5. Final Formula: Substitute this expression for 'm' into the W_body equation: W_body ≈ (W_earth / g_earth) × g_body. Rearranging this gives us the practical formula: W_body ≈ W_earth × (g_body / g_earth).

Variable Explanations:

  • Your Earth Weight (W_earth): This is the force of gravity acting on your mass on Earth, typically measured in kilograms (kg) in everyday contexts, although technically a unit of mass. For this calculator, we use kg as the input, representing the force experienced.
  • Surface Gravity of Body (g_body): The gravitational acceleration at the surface of the target celestial body. This is a measure of how strongly the body pulls objects towards its center, typically measured in meters per second squared (m/s²).
  • Surface Gravity of Earth (g_earth): The standard gravitational acceleration at the surface of Earth, approximately 9.81 m/s².
  • Weight on Body (W_body): The resulting perceived weight on the target celestial body, expressed in kilograms (kg) for comparison with your Earth weight.

Variables Table:

Variable Meaning Unit Typical Range (for planets/moons)
W_earth Your weight measured on Earth's surface kg 1 – 1000+ (human range)
g_body Surface gravitational acceleration of the celestial body m/s² 0.62 (Pluto) – 274.0 (Sun)
g_earth Standard surface gravitational acceleration of Earth m/s² ~9.81 (constant for calculation)
W_body Calculated weight on the celestial body kg Varies greatly based on g_body
Gravity Factor Ratio of g_body / g_earth (g_body / 9.81) Unitless Ratio / Percentage 0.06 (Pluto) – 27.93 (Sun)

The calculator simplifies this by using the relative gravity factor (percentage of Earth's gravity) which is often easier to conceptualize.

Practical Examples (Real-World Use Cases)

Understanding how your weight changes can provide perspective on the physical conditions on different worlds. Here are a couple of examples:

Example 1: A Trip to the Moon

Scenario: An astronaut weighs 75 kg on Earth. They are preparing for a mission to the Moon.

Inputs:

  • Your Weight on Earth: 75 kg
  • Celestial Body: Moon

Calculation Steps:

  1. Find the gravity of the Moon relative to Earth. The Moon's surface gravity is approximately 1.62 m/s², which is about 17% of Earth's 9.81 m/s².
  2. Calculate the weight on the Moon: 75 kg (Earth Weight) × (1.62 m/s² / 9.81 m/s²) ≈ 75 kg × 0.165 ≈ 12.38 kg.

Outputs:

  • Weight on Moon: Approximately 12.4 kg
  • Gravity Factor: 17%
  • Body: Moon

Interpretation: The astronaut would feel significantly lighter on the Moon, weighing only about 12.4 kg. This reduced gravitational pull is why astronauts could perform high leaps and bounds during the Apollo missions.

Example 2: A Giant Leap onto Jupiter

Scenario: Imagine you could stand on Jupiter's "surface" (its cloud tops). You weigh 80 kg on Earth.

Inputs:

  • Your Weight on Earth: 80 kg
  • Celestial Body: Jupiter

Calculation Steps:

  1. Find Jupiter's surface gravity relative to Earth. Jupiter's gravity is about 24.79 m/s², roughly 253% of Earth's gravity.
  2. Calculate the weight on Jupiter: 80 kg (Earth Weight) × (24.79 m/s² / 9.81 m/s²) ≈ 80 kg × 2.527 ≈ 202.16 kg.

Outputs:

  • Weight on Jupiter: Approximately 202.2 kg
  • Gravity Factor: 253%
  • Body: Jupiter

Interpretation: On Jupiter, you would feel more than two and a half times heavier than you do on Earth. A person weighing 80 kg would feel like they weigh over 200 kg. This immense gravitational force makes standing on Jupiter impossible for humans and significantly impacts any probes or spacecraft attempting to enter its atmosphere.

How to Use This Weight on Other Worlds Calculator

Using the calculator is straightforward and designed for quick, informative results. Follow these steps:

Step-by-step instructions:

  1. Enter Your Earth Weight: In the "Your Weight on Earth (kg)" field, type the number that corresponds to how much you weigh currently on Earth. Ensure you use kilograms.
  2. Select a Celestial Body: Use the dropdown menu labeled "Select Celestial Body" to choose the planet, moon, or dwarf planet you are curious about.
  3. Click 'Calculate Weight': Press the "Calculate Weight" button.

How to read results:

  • Primary Result (Large Font): This shows your calculated weight on the selected celestial body in kilograms (kg). This is the most direct answer to your query.
  • Weight on Body (kg): This reiterates the primary result for clarity.
  • Gravity Factor: This number indicates the selected body's surface gravity as a percentage relative to Earth's gravity (100%). A value over 100% means you'd be heavier; under 100% means you'd be lighter.
  • Body: Confirms the name of the celestial body selected.
  • Calculation Explanation: Provides the basic formula used for the calculation, helping you understand the underlying science.
  • Surface Gravity Data Table: Offers a comprehensive list of gravities for various celestial bodies, allowing for broader comparisons.
  • Weight Comparison Chart: Visually represents how your calculated weight compares across different selected bodies.

Decision-making guidance:

While this calculator is primarily for educational and curiosity purposes, the results can inform hypothetical scenarios:

  • Space Mission Planning: Understanding gravity is crucial for astronaut training, equipment design, and mission feasibility.
  • Science Fiction Writing: Provides a basis for realistic portrayals of alien environments.
  • Educational Purposes: Helps solidify concepts of mass, weight, and gravity for students.

Remember, the calculator shows perceived weight. Your actual mass remains constant. The "Copy Results" button can be useful for sharing your findings or using them in reports.

Key Factors That Affect Weight on Other Worlds Results

Several fundamental factors determine the outcome of your weight calculation on other celestial bodies. These are rooted in physics and astronomy:

  1. Mass of the Celestial Body: A more massive planet generally exerts a stronger gravitational pull. Jupiter, being the most massive planet in our solar system, has significantly higher surface gravity than Earth.
  2. Radius of the Celestial Body: Gravity also depends on how far you are from the center of mass. For bodies of similar mass, a smaller radius means higher surface gravity because you are closer to the center. Conversely, a larger radius for a similar mass leads to lower surface gravity.
  3. Distance from the Center: The formula assumes calculation at the 'surface'. For gas giants like Jupiter, "surface" refers to the altitude where atmospheric pressure equals Earth's sea-level pressure. Gravity increases as you descend into denser layers.
  4. Rotation Speed (Minor Effect): The rotation of a planet causes a slight outward centrifugal force, which marginally reduces the perceived weight, especially at the equator. This effect is usually negligible for simple comparative calculations like this but is a real factor.
  5. Composition and Density: While mass and radius are primary, the internal distribution of mass and density can subtly influence the gravitational field.
  6. Absence of Atmosphere (for some bodies): The calculation is purely gravitational. Factors like atmospheric pressure, drag, or buoyancy (which affect how things feel in fluids) are not included but would play a role in a real-world experience on planets with substantial atmospheres.
  7. Your Earth Weight Input: This is the baseline. A higher starting weight on Earth will naturally result in a higher weight on other bodies, scaled by their respective gravity factors.

These factors collectively contribute to the unique gravitational environment of each world, making the calculation not just a number, but a reflection of cosmic physics.

Frequently Asked Questions (FAQ)

What is the difference between mass and weight?

Mass is the amount of matter in an object and is constant regardless of location. Weight is the force of gravity acting on that mass. So, your mass stays the same on the Moon, but your weight changes because the Moon's gravity is weaker.

Why does gravity differ on other planets?

Gravity depends on the mass and radius of a celestial body. More massive bodies have stronger gravity. For bodies of similar mass, a smaller radius means you're closer to the center, resulting in stronger surface gravity.

Can I weigh more on a planet than Earth?

Yes! Planets like Jupiter and Saturn have much stronger gravitational pull than Earth due to their immense mass. On these gas giants, you would weigh significantly more than you do on Earth.

Is the calculation accurate for gas giants like Jupiter?

The calculation provides a good estimate based on the gravity at a reference "surface" (usually the 1-bar pressure level). However, gas giants don't have a solid surface, and gravity changes significantly with depth. Also, atmospheric pressure and density would play a huge role in any physical experience.

Does this calculator account for the Sun's gravity?

Yes, the calculator includes the Sun. If you were somehow able to stand on the Sun's surface (which is impossible due to extreme heat and pressure), you would weigh an enormous amount due to its massive gravity.

What does the 'Gravity Factor' mean?

The Gravity Factor shows the gravitational acceleration of the selected body relative to Earth's gravity (which is 100%). For example, a factor of 38% means the gravity is 38% as strong as Earth's, making you weigh 38% of your Earth weight.

Why is Pluto listed as a dwarf planet?

Pluto was reclassified as a dwarf planet in 2006. It has significantly less mass and lower surface gravity compared to the eight major planets in our solar system.

Can I use this calculator for exoplanets?

This calculator is designed for bodies within our solar system for which we have reliable gravity data. Calculating weight on exoplanets would require knowing their specific mass and radius, which are often estimated or unknown.

Related Tools and Internal Resources

© 2023 Your Company Name. All rights reserved.

var earthGravity = 9.81; // m/s^2 var gravityData = { mercury: { name: "Mercury", gravity: 3.70, relative: 38 }, venus: { name: "Venus", gravity: 8.87, relative: 90 }, earth: { name: "Earth", gravity: 9.81, relative: 100 }, moon: { name: "Moon", gravity: 1.62, relative: 17 }, mars: { name: "Mars", gravity: 3.71, relative: 38 }, jupiter: { name: "Jupiter", gravity: 24.79, relative: 253 }, saturn: { name: "Saturn", gravity: 10.44, relative: 106 }, uranus: { name: "Uranus", gravity: 8.69, relative: 89 }, neptune: { name: "Neptune", gravity: 11.15, relative: 114 }, pluto: { name: "Pluto (Dwarf Planet)", gravity: 0.62, relative: 6 }, sun: { name: "Sun", gravity: 274.0, relative: 2793 } }; var chartInstance = null; // Global variable to hold chart instance function calculateWeight() { var earthWeightInput = document.getElementById("earthWeight"); var planetSelect = document.getElementById("planet"); var earthWeightError = document.getElementById("earthWeightError"); var earthWeight = parseFloat(earthWeightInput.value); var selectedPlanet = planetSelect.value; // Clear previous errors earthWeightError.textContent = ""; // Input validation if (isNaN(earthWeight) || earthWeight <= 0) { earthWeightError.textContent = "Please enter a valid weight greater than 0."; return; } var planetInfo = gravityData[selectedPlanet]; if (!planetInfo) { console.error("Gravity data not found for:", selectedPlanet); return; } var planetGravity = planetInfo.gravity; var bodyName = planetInfo.name; var relativeGravity = planetInfo.relative; // Calculate weight on the other world var weightOnBody = earthWeight * (planetGravity / earthGravity); // Update results display document.getElementById("calculatedWeight").textContent = weightOnBody.toFixed(2); document.getElementById("weightInKg").querySelector('span').textContent = weightOnBody.toFixed(2); document.getElementById("gravityFactor").querySelector('span').textContent = relativeGravity + "%"; document.getElementById("bodyName").querySelector('span').textContent = bodyName; // Update chart updateChart(earthWeight); } function updateChart(earthWeight) { var ctx = document.getElementById('weightChart').getContext('2d'); // Destroy previous chart instance if it exists if (chartInstance) { chartInstance.destroy(); } var labels = []; var weights = []; var earthWeightValue = parseFloat(document.getElementById("earthWeight").value) || 70; // Default to 70 if invalid for (var planet in gravityData) { var data = gravityData[planet]; var calculatedWeight = earthWeightValue * (data.gravity / earthGravity); labels.push(data.name); weights.push(calculatedWeight.toFixed(2)); // Store as string for display, but ensure it's a number for calculations } // Sort data by weight for better visualization (optional) var chartData = labels.map(function(label, index) { return { label: label, weight: parseFloat(weights[index]) }; }); chartData.sort(function(a, b) { return a.weight – b.weight; }); var sortedLabels = chartData.map(function(item) { return item.label; }); var sortedWeights = chartData.map(function(item) { return item.weight; }); chartInstance = new Chart(ctx, { type: 'bar', // Use bar chart for direct comparison data: { labels: sortedLabels, datasets: [{ label: 'Weight (kg)', data: sortedWeights, backgroundColor: 'rgba(0, 74, 153, 0.6)', // Primary color borderColor: 'rgba(0, 74, 153, 1)', borderWidth: 1 }] }, options: { responsive: true, maintainAspectRatio: true, scales: { y: { beginAtZero: true, title: { display: true, text: 'Weight (kg)' } }, x: { title: { display: true, text: 'Celestial Body' } } }, plugins: { legend: { display: false // Hide legend as it's redundant with x-axis labels }, tooltip: { callbacks: { label: function(context) { var label = context.dataset.label || ''; if (label) { label += ': '; } if (context.parsed.y !== null) { label += context.parsed.y.toFixed(2) + ' kg'; } return label; } } } } } }); } function copyResults() { var calculatedWeight = document.getElementById("calculatedWeight").textContent; var weightInKgSpan = document.getElementById("weightInKg").querySelector('span').textContent; var gravityFactorSpan = document.getElementById("gravityFactor").querySelector('span').textContent; var bodyNameSpan = document.getElementById("bodyName").querySelector('span').textContent; var earthWeightInput = document.getElementById("earthWeight").value; var copyText = "Your Weight on Other Worlds Results:\n\n"; copyText += "Earth Weight: " + earthWeightInput + " kg\n"; copyText += "————————————\n"; copyText += "Celestial Body: " + bodyNameSpan + "\n"; copyText += "Calculated Weight: " + calculatedWeight + " kg\n"; copyText += "Gravity Factor: " + gravityFactorSpan + "\n"; copyText += "————————————\n"; copyText += "Formula Used: Weight on Body = Your Earth Weight (kg) × (Body's Surface Gravity / Earth's Surface Gravity)\n"; copyText += "\nData based on standard surface gravity values."; var textArea = document.createElement("textarea"); textArea.value = copyText; document.body.appendChild(textArea); textArea.select(); try { var successful = document.execCommand('copy'); var msg = successful ? 'Copied!' : 'Copy failed'; var statusElement = document.getElementById('copyStatus'); statusElement.textContent = msg; statusElement.classList.add('visible'); setTimeout(function(){ statusElement.classList.remove('visible'); }, 2000); } catch (err) { console.error('Fallback: Oops, unable to copy', err); var statusElement = document.getElementById('copyStatus'); statusElement.textContent = 'Copy failed'; statusElement.classList.add('visible'); setTimeout(function(){ statusElement.classList.remove('visible'); }, 2000); } document.body.removeChild(textArea); } function resetCalculator() { document.getElementById("earthWeight").value = "70"; document.getElementById("planet").value = "earth"; document.getElementById("earthWeightError").textContent = ""; calculateWeight(); // Recalculate with default values } function toggleFaq(element) { var faqItems = document.querySelectorAll('.faq-item h3'); faqItems.forEach(function(item) { if (item !== element) { item.classList.remove('active'); } }); element.classList.toggle('active'); } // Initialize calculator and chart on page load window.onload = function() { // Add canvas element if it doesn't exist if (!document.getElementById('weightChart')) { var canvas = document.createElement('canvas'); canvas.id = 'weightChart'; document.querySelector('.chart-container').appendChild(canvas); } // Initialize chart with default values updateChart(); calculateWeight(); // Initial calculation // Populate the gravity table dynamically from JS data var tableBody = document.getElementById('gravityTableBody'); var tableHtml = ''; var sortedPlanets = Object.keys(gravityData).sort(function(a, b) { // Sort by relative gravity for better table order return gravityData[a].relative – gravityData[b].relative; }); for (var i = 0; i < sortedPlanets.length; i++) { var planetKey = sortedPlanets[i]; var data = gravityData[planetKey]; tableHtml += ''; tableHtml += '' + data.name + ''; tableHtml += '' + data.gravity.toFixed(2) + ''; tableHtml += '' + data.relative + '%'; tableHtml += ''; } tableBody.innerHTML = tableHtml; };

Leave a Comment