<form>
<input class="addTask" type="text">
<button>add</button>
</form>
$(`form`).on(`submit`, function(event){
event.preventDefault();
let getTasks = $(`.addTask`).val();
getTasksMassive = []
getTasksMassive.push(getTasks);
console.log(getTasksMassive);