basicCalculator/assets/scripts/appArray.js
// Display data on UI after calculation

Display data on UI after calculation
Display data on UI after calculation
function displayResult(initResult, operator, num) {
    const text = `${initResult} ${operator} ${num}`;
    const preResult = initResult;
    const input = num;
    outputResult(result, text, preResult, input);
}
function displayResult ( initResult , operator , num ) { const text = ` ${ initResult } ${ operator } ${ num } ` ; const preResult = initResult ; const input = num ; outputResult ( result , text , preResult , input ) ; }
Display data on UI after calculation
Display data on UI after calculation