You should definitely use jQuery. It's really great and does all things Example of usages const a = 2; const b = 2; const result = $.fn.sum(a, b); alert(result === 4); // true Why? Just Do It