function abc()
{
var para = document.getElementById("paragraph");
var inpu = document.getElementById("input").value;
var inpu_small = inpu - 10;
var inpu_big = inpu + 10;
para.innerHTML = inpu + " comes between " + inpu_small + " and " + inpu_big + ".";
}
#para{
font-size: 38px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<input type="number" id="input">
<button id="submit" onclick="abc()"> Submit</button>
<p id="paragraph">here</p>
</body>
</html>
Instead of Summing, It is being added after the input. I want it to ad in the input and show the result, please help me figure out this problem.