skip to Main Content
function displayOutput(massage){
    const element = document.getElementById("jsoutput4");
    element.innerHTML = massage;
}
function calculateF(A, B, C){
    var D = B = A;
    var E = D * 5;
    var F = E * C;
    return D
}
var G = calculateF(100, 20, 10);
displayOutput("your answer is" + calculateA);
<p id="jsoutput"></p>

I have tried changing the displayoutput but i don’t get an answer to the function i have set

2

Answers


  1. function displayOutput(massage) {
      const element = document.getElementById("jsoutput");
      element.innerHTML = massage;
    }
    
    function calculateF(A, B, C) {
      var D = B = A;
      var E = D * 5;
      var F = E * C;
      return F;
    }
    var G = calculateF(100, 20, 10);
    displayOutput("Your answer is " + G);
    <p id="jsoutput"></p>
    Login or Signup to reply.
  2. function displayOutput(massage){
        const element = document.getElementById("jsoutput");
        element.innerHTML = massage;
    }
    function calculateF(A, B, C){
        var D = B = A;
        var E = D * 5;
        var F = E * C;
        return F
    }
    var G = calculateF(100, 20, 10);
    displayOutput("your answer is " + G);
    <p id="jsoutput"></p>
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search