<div class="form">
<form action="#">
<input id="name" type="text" placeholder="Имя">
<input id="age" type="text" placeholder="Фамилия">
<input id="btn" type="submit">
</form>
</div>
$('#btn').click(function(event) {
let object = {
name: $('input:eq(0)').val(),
surname: $('input:eq(1)').val(),
}
console.log(object.name + ' ' + object.surname);
});