Help with stringing variables

I don’t know why this keeps happening, but when I fill out the form I get the first variable and then [object HTMLInputElement] for the other variables:

function insert(){
var studentId = document.getElementById(‘student’).value;
var firstName = document.getElementById(‘first’).value;
var lastName = document.getElementById(‘last’).value;
var phone = document.getElementById(‘tel’).value;

var studentRecord = studentId + first + last + tel; //used to store a student record



Or is there a different way to place these values into 1 variable with JavaScript?

Hint: you have named your value variables firstName, lastName and phone, but you are using first, last and tel in the concatenation.

I think you just need to look a bit more closely at what you’ve done - even a layman should see the inconsistency.