<button class="count">Count Up 1</button>
<button class="reset">Reset</button>

<div class="result"><span>0</span></div>


var res = $('.result span');
var counter = 0;

$('.count').on('click', function() {
  counter++;
  var result = counter.toString(8);
  res.text(result); 
});

$('.reset').on('click', function() {
  counter = 0;
  res.text(0); 
});

External CSS

  1. https://codepen.io/tutsplus/pen/wrmOWP

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js