Reduction Oxidation (Redox) Calculator & Guide


Reduction Oxidation (Redox) Calculator

Understand and calculate key parameters for redox reactions.

Redox Reaction Parameters



Enter the standard reduction potential in Volts (V) for the reduction half-reaction. Example: 0.80 V for Ag+/Ag.


Enter the standard oxidation potential in Volts (V) for the oxidation half-reaction. Example: -0.44 V for Fe/Fe2+.


Enter the number of electrons exchanged in the balanced redox reaction. Must be a positive integer.


Select the temperature at which the reaction occurs in Kelvin (K).


Enter the molar concentration (mol/L or M) of the oxidized species in the Nernst equation. Typically 1.0 M under standard conditions.


Enter the molar concentration (mol/L or M) of the reduced species in the Nernst equation. Typically 1.0 M under standard conditions.


Redox Potential (Ecell) vs. Reaction Progress (illustrative)
Parameter Value Unit Notes
Standard Reduction Potential (E°_red) V Input
Standard Oxidation Potential (E°_ox) V Input
Electrons Transferred (n) Input
Temperature (T) K Input
[Ox]/[Red] Concentration Ratio M/M Input ratio = [Ox]/[Red]
Standard Cell Potential (E°cell) V E°_red + E°_ox
Nernst Factor (RT/nF) V Calculated
Nernst Equation Potential (Ecell) V E°cell – Nernst Factor * ln(Ratio)
Gibbs Free Energy (ΔG°) kJ/mol -nFE°cell
Summary of Redox Calculation Inputs and Outputs

What is Reduction Oxidation (Redox)?

Reduction-Oxidation, commonly known as Redox, refers to a fundamental type of chemical reaction where electrons are transferred between chemical species. These reactions are ubiquitous in nature and play critical roles in numerous processes, from the respiration in our cells to the corrosion of metals and the generation of electricity in batteries. Understanding redox reactions is crucial for chemists, biochemists, environmental scientists, and engineers.

A redox reaction always involves two half-reactions: an oxidation half-reaction and a reduction half-reaction.

  • Oxidation: The loss of electrons by a species, resulting in an increase in its oxidation state.
  • Reduction: The gain of electrons by a species, resulting in a decrease in its oxidation state.

These two processes occur simultaneously; one species cannot be oxidized unless another species is reduced by accepting the electrons. The overall reaction involves the transfer of these electrons.

Who should use this Redox Calculator?

  • Students learning general chemistry and electrochemistry.
  • Researchers studying reaction kinetics and thermodynamics.
  • Engineers designing electrochemical cells (batteries, fuel cells, electrolysis).
  • Environmental scientists analyzing pollutants and water treatment processes.
  • Anyone needing to quickly calculate standard potentials, Gibbs free energy, or potentials under non-standard conditions.

Common Misconceptions about Redox:

  • Redox only applies to metals: Redox reactions involve a wide range of elements, including non-metals (e.g., halogens, oxygen) and complex ions.
  • “Oxidation” always means reacting with oxygen: While historically named so, oxidation is broadly defined as electron loss, regardless of whether oxygen is involved.
  • Electrons are created or destroyed: Electrons are conserved in redox reactions; they are simply transferred from one species to another.

Our Redox Calculator helps demystify these complex calculations by providing instant results based on your input parameters.

Redox Formula and Mathematical Explanation

The core of understanding redox reactions lies in thermodynamics and electrochemistry. We often use the Nernst equation to calculate the cell potential under non-standard conditions and the relationship between cell potential and Gibbs free energy to assess spontaneity.

Standard Cell Potential (E°cell)

The standard cell potential is the difference in electric potential between the two electrodes of a galvanic or electrolytic cell under standard conditions (1 M concentration for solutes, 1 atm pressure for gases, and usually 25°C or 298.15 K). It is calculated by summing the standard reduction potential of the cathode (reduction half-reaction) and the standard oxidation potential of the anode (oxidation half-reaction). Alternatively, it’s the standard reduction potential of the cathode minus the standard reduction potential of the anode.

Formula:
$ E°_{cell} = E°_{reduction} + E°_{oxidation} $
or
$ E°_{cell} = E°_{cathode} – E°_{anode} $ (where E° values are typically reduction potentials)

Nernst Equation

The Nernst equation relates the cell potential ($E_{cell}$) under non-standard conditions to the standard cell potential ($E°_{cell}$), temperature (T), number of electrons transferred (n), and the concentrations of the oxidized and reduced species.

The general form of the Nernst equation is:
$ E_{cell} = E°_{cell} – \frac{RT}{nF} \ln \frac{[\text{Reduced Species}]}{[\text{Oxidized Species}]} $

Where:

  • $E_{cell}$ is the cell potential under non-standard conditions.
  • $E°_{cell}$ is the standard cell potential.
  • $R$ is the ideal gas constant ($8.314 \, \text{J/(mol·K)}$).
  • $T$ is the absolute temperature in Kelvin (K).
  • $n$ is the number of moles of electrons transferred in the balanced redox reaction.
  • $F$ is the Faraday constant ($96,485 \, \text{C/mol}$).
  • $\ln$ is the natural logarithm.
  • $[\text{Reduced Species}]$ is the molar concentration of the reduced form.
  • $[\text{Oxidized Species}]$ is the molar concentration of the oxidized form.

Often, we use the ratio $[\text{Oxidized Species}]/[\text{Reduced Species}]$ in the denominator for reduction potentials. Our calculator uses the convention where $E°_{cell} = E°_{reduction} + E°_{oxidation}$ and applies the Nernst equation as $E_{cell} = E°_{cell} – \frac{RT}{nF} \ln \frac{[\text{Reduced Species}]}{[\text{Oxidized Species}]}$ using the provided $E°_{reduction}$ and $E°_{oxidation}$ values. The concentration inputs ([Ox] and [Red]) are used to form the ratio.

At $25^\circ C$ ($298.15 \, K$), the term $\frac{RT}{nF}$ can be simplified. Using $\ln(x) = 2.303 \log_{10}(x)$:
$ \frac{RT}{nF} = \frac{(8.314 \, \text{J/(mol·K)}) \times (298.15 \, \text{K})}{n \times (96485 \, \text{C/mol})} \approx \frac{0.0257 \, \text{V}}{n} $ (when using natural log)
$ \frac{2.303RT}{nF} \approx \frac{0.0592 \, \text{V}}{n} $ (when using log base 10)

Our calculator uses the natural logarithm (ln) and the precise R and T values.

Gibbs Free Energy (ΔG°)

The standard Gibbs free energy change ($ΔG°$) indicates the spontaneity of a reaction under standard conditions. It is related to the standard cell potential by the equation:

$ ΔG° = -nFE°_{cell} $

Where:

  • $ΔG°$ is the standard Gibbs free energy change (in Joules per mole).
  • $n$ is the number of moles of electrons transferred.
  • $F$ is the Faraday constant.
  • $E°_{cell}$ is the standard cell potential (in Volts).

A negative $ΔG°$ indicates a spontaneous reaction, while a positive $ΔG°$ indicates a non-spontaneous reaction (requiring energy input).

Variables Table

Variable Meaning Unit Typical Range
$E°_{reduction}$ Standard Reduction Potential Volts (V) -3.0 V to +3.0 V (approx.)
$E°_{oxidation}$ Standard Oxidation Potential Volts (V) -3.0 V to +3.0 V (approx.)
$E°_{cell}$ Standard Cell Potential Volts (V) Calculated (sum of E°_red and E°_ox)
$R$ Ideal Gas Constant J/(mol·K) 8.314
$T$ Absolute Temperature Kelvin (K) 273.15 K (0°C) to 373.15 K (100°C) or higher
$n$ Moles of Electrons Transferred Positive Integer (e.g., 1, 2, 3, …)
$F$ Faraday Constant C/mol 96,485
$[\text{Oxidized Species}]$ Molar Concentration of Oxidized Species M (mol/L) Typically 1.0 M under standard conditions, but variable
$[\text{Reduced Species}]$ Molar Concentration of Reduced Species M (mol/L) Typically 1.0 M under standard conditions, but variable
$E_{cell}$ Cell Potential (Non-standard) Volts (V) Calculated using Nernst Equation
$ΔG°$ Standard Gibbs Free Energy Change kJ/mol Calculated from E°cell

Practical Examples (Real-World Use Cases)

Redox reactions are fundamental to many chemical and biological processes. Here are a couple of practical examples demonstrating the application of redox calculations.

Example 1: The Daniell Cell (Zn-Cu Battery)

The Daniell cell is a classic example of a galvanic cell that produces electricity from the spontaneous reaction between zinc and copper ions.

Overall Reaction: $Zn(s) + Cu^{2+}(aq) \rightarrow Zn^{2+}(aq) + Cu(s)$

  • Reduction Half-Reaction (Cathode): $Cu^{2+}(aq) + 2e^- \rightarrow Cu(s)$ ($E°_{red} = +0.34 \, V$)
  • Oxidation Half-Reaction (Anode): $Zn(s) \rightarrow Zn^{2+}(aq) + 2e^-$ ($E°_{ox} = +0.76 \, V$, since $E°_{red}(Zn^{2+}/Zn) = -0.76 \, V$)
  • Electrons Transferred (n): 2
  • Temperature: 298.15 K (25°C)
  • Concentrations: Assume standard conditions: $[Cu^{2+}] = 1.0 \, M$, $[Zn^{2+}] = 1.0 \, M$. So, [Oxidized Species] = 1.0 M (for Cu), [Reduced Species] = 1.0 M (for Zn).

Calculator Inputs:

  • Standard Reduction Potential (E°): 0.34 V (for Cu²⁺/Cu)
  • Standard Oxidation Potential (E°): 0.76 V (for Zn/Zn²⁺)
  • Number of Electrons Transferred (n): 2
  • Temperature: 298.15 K
  • Concentration of Oxidized Species ([Ox]): 1.0 M
  • Concentration of Reduced Species ([Red]): 1.0 M

Calculator Outputs (simulated):

  • Standard Cell Potential (E°cell): 0.34 V + 0.76 V = 1.10 V
  • Nernst Equation Potential (Ecell): Since conditions are standard, Ecell = E°cell = 1.10 V
  • Gibbs Free Energy (ΔG°): $ΔG° = -nFE°_{cell} = -2 \times 96485 \, \text{C/mol} \times 1.10 \, \text{V} \approx -212,267 \, \text{J/mol} = -212.3 \, \text{kJ/mol}$

Interpretation: The positive $E°_{cell}$ and highly negative $ΔG°$ indicate that the Daniell cell reaction is spontaneous under standard conditions, making it a suitable voltaic (galvanic) cell for producing electricity.

Example 2: Corrosion of Iron

The rusting of iron is a common redox process. A simplified representation involves iron being oxidized and oxygen being reduced.

Simplified Reaction: $2Fe(s) + O_2(g) + 2H_2O(l) \rightarrow 2Fe^{2+}(aq) + 4OH^-(aq)$
(Further oxidation to $Fe_2O_3 \cdot nH_2O$ occurs)

  • Oxidation Half-Reaction: $Fe(s) \rightarrow Fe^{2+}(aq) + 2e^-$ ($E°_{ox} = +0.44 \, V$, since $E°_{red}(Fe^{2+}/Fe) = -0.44 \, V$)
  • Reduction Half-Reaction: $O_2(g) + 2H_2O(l) + 4e^- \rightarrow 4OH^-(aq)$ ($E°_{red} = +0.40 \, V$)
  • Electrons Transferred (n): The balanced reaction involves 4 electrons, but we can consider the Fe oxidation as $Fe \rightarrow Fe^{2+} + 2e^-$. For simplicity in calculation setup, let’s consider a balanced reaction with 2 electrons per Fe atom: $Fe(s) \rightarrow Fe^{2+}(aq) + 2e^-$ and use the given $E°_{ox}$ and a relevant $E°_{red}$. Let’s use a common simplified setup where we consider the direct reaction leading to $Fe^{2+}$ and $O_2$ reduction. We need to ensure n is consistent. A more accurate representation of rusting involves multiple steps and environments. Let’s simplify for calculation: Assume $n=2$ for the $Fe \rightarrow Fe^{2+} + 2e^-$ part, and we have $E°_{ox}$ for Fe. For $O_2$ reduction, $E°_{red}$ is typically around $+0.40 \, V$ in neutral solution.
  • Temperature: 298.15 K (25°C)
  • Concentrations: Let’s assume [Fe²⁺] = 0.01 M (low solubility) and dissolved $O_2$ has a partial pressure that leads to a concentration equivalent to a typical dissolved oxygen level (e.g., 0.0001 M for calculation purposes, though complex). Let’s input the ratio of oxidized to reduced species. If we focus on $Fe^{2+}$ as the oxidized species from $Fe$ and consider a hypothetical reduced species or just the impact of concentration on the overall potential, it gets tricky. A simpler approach for the calculator might be to input the ratio $[Fe^{2+}]/[Fe]$. However, solid Fe doesn’t have a concentration in M. This highlights limitations. Let’s consider the ratio of $O_2$ reduction: $[OH^-]^4 / P_{O_2}$. This shows the calculator is best for ion/molecule species.

Let’s reframe for the calculator: Consider the reaction $Fe^{2+}(aq) \rightarrow Fe^{3+}(aq) + e^-$. $E°_{red}(Fe^{3+}/Fe^{2+}) = +0.77 \, V$. Let’s say $Fe^{2+}$ is oxidized to $Fe^{3+}$ ($E°_{ox} = -0.77 \, V$). And $O_2$ is reduced to $H_2O$ in acidic solution: $O_2(g) + 4H^+(aq) + 4e^- \rightarrow 2H_2O(l)$, $E°_{red} = +1.23 \, V$. Here $n=4$.

Calculator Inputs (Hypothetical Fe³⁺/Fe²⁺ vs O₂/H₂O example):

  • Standard Reduction Potential (E°): 1.23 V (for O₂/H₂O reduction)
  • Standard Oxidation Potential (E°): -0.77 V (for Fe²⁺/Fe³⁺ oxidation)
  • Number of Electrons Transferred (n): 4
  • Temperature: 298.15 K
  • Concentration of Oxidized Species ([Ox]): Let’s say [Fe³⁺] = 0.001 M
  • Concentration of Reduced Species ([Red]): Let’s say [Fe²⁺] = 0.1 M

Calculator Outputs (simulated):

  • Standard Cell Potential (E°cell): 1.23 V + (-0.77 V) = 0.46 V
  • Nernst Equation Potential (Ecell):
    $E_{cell} = 0.46 \, V – \frac{(8.314)(298.15)}{4(96485)} \ln \frac{0.1}{0.001}$
    $E_{cell} = 0.46 \, V – (0.00636 \, V) \ln(100)$
    $E_{cell} = 0.46 \, V – (0.00636 \, V) \times 4.605 \approx 0.46 \, V – 0.029 \, V = 0.431 \, V$
  • Gibbs Free Energy (ΔG°): $ΔG° = -4 \times 96485 \, \text{C/mol} \times 0.46 \, \text{V} \approx -177,552 \, \text{J/mol} = -177.6 \, \text{kJ/mol}$

Interpretation: Even with non-standard concentrations (favoring the reduced species Fe²⁺), the cell potential remains positive ($0.431 \, V$), and $ΔG°$ is negative, indicating the reaction is still spontaneous. This helps predict the tendency for iron to corrode in the presence of oxygen. The calculation highlights how conditions affect reaction feasibility.

How to Use This Redox Calculator

Using the Reduction Oxidation Calculator is straightforward. Follow these steps to get your results:

  1. Identify the Half-Reactions: Determine the oxidation and reduction half-reactions for the overall redox process you are interested in. You can usually find standard reduction potentials ($E°$) in electrochemical data tables.
  2. Input Standard Potentials:

    • Enter the Standard Reduction Potential (E°) for the species that is being reduced (gaining electrons).
    • Enter the Standard Oxidation Potential (E°) for the species that is being oxidized (losing electrons). Note: If you only have the standard *reduction* potential for the oxidation half-reaction (e.g., $Zn^{2+} + 2e^- \rightarrow Zn$, $E° = -0.76 \, V$), you need to reverse the sign to get the standard *oxidation* potential for $Zn \rightarrow Zn^{2+} + 2e^-$, which would be $+0.76 \, V$.
  3. Enter Number of Electrons Transferred (n): This is the number of electrons exchanged in the balanced redox reaction. It must be a positive integer. For example, in $Zn + Cu^{2+} \rightarrow Zn^{2+} + Cu$, $n=2$.
  4. Select Temperature (T): Choose the temperature in Kelvin (K) at which the reaction is occurring. $25^\circ C$ corresponds to $298.15 \, K$.
  5. Input Concentrations:

    • Enter the molar concentration (M) of the oxidized species present in the reaction mixture for the Nernst equation.
    • Enter the molar concentration (M) of the reduced species present in the reaction mixture for the Nernst equation.

    If calculating under standard conditions, these are typically $1.0 \, M$.

  6. Click “Calculate Redox Parameters”: The calculator will instantly compute and display:

    • Main Result: The Nernst Equation Potential ($E_{cell}$) under the specified non-standard conditions.
    • Intermediate Values:
      • Standard Cell Potential ($E°_{cell}$)
      • Gibbs Free Energy ($ΔG°$)
  7. Interpret the Results:

    • $E_{cell}$ (Main Result): A positive $E_{cell}$ indicates the reaction is spontaneous under the given conditions. A negative $E_{cell}$ indicates it is non-spontaneous.
    • $E°_{cell}$ (Intermediate): Indicates spontaneity under standard conditions.
    • $ΔG°$ (Intermediate): A negative $ΔG°$ confirms spontaneity ($ΔG° < 0$). A positive $ΔG°$ indicates non-spontaneity. $ΔG° = 0$ implies the system is at equilibrium.
  8. Use the Table and Chart: The table provides a detailed breakdown of all inputs and calculated values. The chart visually represents how the cell potential might change under varying conditions or reaction progress (illustrative).
  9. Reset or Copy: Use the “Reset” button to clear the form and start over. Use “Copy Results” to copy the key figures for documentation or reports.

This tool, along with understanding the underlying principles of [reduction oxidation](link-to-another-redox-resource), empowers informed decision-making in electrochemical applications.

Key Factors That Affect Redox Results

Several factors can significantly influence the outcome of redox calculations and the behavior of redox reactions in practice. Understanding these is key to accurate predictions and effective application.

  1. Concentration of Reactants and Products: This is directly accounted for by the Nernst equation. Higher concentrations of reactants (or lower concentrations of products) generally favor the forward reaction, leading to a more positive cell potential ($E_{cell}$). Conversely, higher concentrations of products (or lower concentrations of reactants) shift the equilibrium, decrease $E_{cell}$, and can even make a reaction non-spontaneous. For example, in the Daniell cell, if $[Cu^{2+}]$ is very high and $[Zn^{2+}]$ is very low, the driving force for the reaction increases.
  2. Temperature: Temperature affects reaction rates and equilibrium constants. The Nernst equation shows that temperature directly influences the $RT/nF$ term. Increasing temperature generally increases the kinetic energy of molecules, potentially speeding up the reaction, and also alters the thermodynamic driving force, often decreasing the magnitude of $E_{cell}$ slightly and increasing entropy contributions to $ΔG$.
  3. pH: Many redox reactions involve protons ($H^+$) or hydroxide ions ($OH^-$). Changes in pH alter the concentrations of these species, directly affecting the reaction potential according to the Nernst equation (as $H^+$ or $OH^-$ are reactants or products). For instance, the reduction potential of oxygen varies significantly with pH.
  4. Pressure (for Gases): If gaseous species are involved (like $O_2$, $H_2$), their partial pressures influence the reaction quotient $Q$. While this calculator primarily uses molar concentrations, in systems involving gases, partial pressure is analogous to concentration and must be considered, often using $K_p$ relationships or adjusting concentration terms.
  5. Presence of Catalysts: Catalysts do not affect the overall thermodynamics ($E°_{cell}$, $ΔG°$) of a reaction but can significantly increase the rate at which equilibrium is reached. They provide alternative reaction pathways with lower activation energies, making slow redox reactions proceed much faster. This is crucial in industrial processes and biological systems.
  6. Formation of Complexes or Precipitates: If ions involved in a redox reaction form stable complex ions or insoluble precipitates with other species in the solution, their effective concentrations change. This alters the reaction quotient and thus the cell potential ($E_{cell}$). For example, if $Fe^{2+}$ forms a complex, its concentration is effectively lowered, which might favor its oxidation.
  7. Overpotential: In practical electrochemical cells, the actual potential required to drive a reaction (especially electrolysis) can be higher than the thermodynamically calculated value. This “overpotential” accounts for kinetic barriers like electron transfer rates and diffusion limitations at the electrode surface. It’s not typically included in standard Nernst calculations but is vital for real-world cell design.
  8. Standard State Definitions: Ensuring consistency with standard states (1 M, 1 atm, 25°C) is vital. Deviations from these conditions necessitate the use of the Nernst equation. Our calculator uses precise values for constants and temperature in Kelvin.

Understanding these factors allows for more accurate predictions and optimization in fields like electroplating, battery technology, and corrosion prevention. Explore our guides on [electrochemical cells](link-to-electrochem-cells) and [corrosion science](link-to-corrosion-science) for more insights.

Frequently Asked Questions (FAQ)

What is the difference between standard and non-standard conditions in redox calculations?
Standard conditions typically refer to 25°C (298.15 K), 1 atm pressure for gases, and 1 M concentration for all solutes. Under these conditions, the cell potential is the standard cell potential ($E°_{cell}$). Non-standard conditions involve any deviation from these, requiring the Nernst equation to calculate the actual cell potential ($E_{cell}$).

How do I find the standard oxidation potential if I only have the standard reduction potential?
The standard oxidation potential for a half-reaction is simply the negative of the standard reduction potential for the reverse reaction. For example, if the reduction of $Zn^{2+}$ to $Zn$ is $Zn^{2+} + 2e^- \rightarrow Zn$ with $E°_{red} = -0.76 \, V$, then the oxidation of $Zn$ to $Zn^{2+}$ ($Zn \rightarrow Zn^{2+} + 2e^-$) has $E°_{ox} = -(-0.76 \, V) = +0.76 \, V$.

Can the Nernst equation potential ($E_{cell}$) be zero?
Yes, $E_{cell}$ can be zero. This occurs when the reaction quotient $Q$ equals the equilibrium constant $K$. At this point, $E_{cell} = E°_{cell} – \frac{RT}{nF} \ln K$. If $E_{cell} = 0$, then $E°_{cell} = \frac{RT}{nF} \ln K$. This signifies that the system is at equilibrium, and there is no net driving force for the reaction.

What does a negative Gibbs Free Energy ($ΔG°$) mean?
A negative $ΔG°$ indicates that the reaction is spontaneous under standard conditions. The more negative the value, the greater the tendency for the reaction to occur. Conversely, a positive $ΔG°$ means the reaction is non-spontaneous under standard conditions and requires energy input to proceed.

Does the calculator handle redox reactions involving solids?
The Nernst equation relies on concentrations (or activities) of dissolved species and partial pressures of gases. Pure solids and liquids have an activity of 1 and do not appear in the concentration term of the Nernst equation. If a solid reactant or product is involved, its effective “concentration” is considered constant. However, the calculator expects molar concentrations for the [Ox] and [Red] inputs, which typically apply to ions or molecules in solution. Solid species influence the reaction by participating, but their concentration term is unity.

What if my reaction involves different numbers of electrons in its half-reactions?
Before calculating $E°_{cell}$ or applying the Nernst equation, you must balance the overall redox reaction so that the number of electrons lost in oxidation equals the number of electrons gained in reduction. This balanced number is the ‘n’ you use in the calculations. For example, if one half-reaction involves 2e⁻ and the other involves 3e⁻, you’d multiply the first by 3 and the second by 2 to get a total of 6 electrons transferred.

How accurate are the results?
The accuracy depends on the accuracy of the input values (standard potentials, concentrations, temperature) and the validity of the assumptions made (e.g., ideal solution behavior). Standard potentials can vary slightly depending on the reference source. The calculator uses precise physical constants ($R$, $F$). For most practical purposes, the results will be highly accurate.

Can this calculator be used for electrolysis?
Yes, the principles apply. For electrolysis, an external voltage is applied to drive a non-spontaneous reaction. The calculated $E_{cell}$ (which will likely be negative relative to the spontaneous direction) indicates the minimum voltage needed. The actual applied voltage will be higher due to overpotentials and to overcome the non-spontaneity. The Nernst equation helps determine the thermodynamic feasibility and potential under different conditions.

© 2023 Your Website Name. All rights reserved.

in the

// Initialize chart on load after initial calculation
document.addEventListener(‘DOMContentLoaded’, function() {
var calculateButton = document.querySelector(‘.date-calc-container .btn-primary’);
calculateButton.onclick = function() {
calculateRedox();
};
// Initial calculation on load if defaults are present
calculateRedox();

// FAQ toggles
var faqQuestions = document.querySelectorAll(‘.faq-question’);
faqQuestions.forEach(function(question) {
question.addEventListener(‘click’, function() {
var faqItem = this.parentElement;
faqItem.classList.toggle(‘open’);
});
});
});




Leave a Reply

Your email address will not be published. Required fields are marked *