So I'm trying to make the value inputted to call one of these arrays, however the only method I know is value[0], value[1] however that apparently splits down the value. I normaly do LUA and am not yet used to jQuery.
$(function(){
// User Pets
var John = ['Dog', 'Alive'];
var Emily = ['Cat', 'Alive'];
var Frank = ['Fish', 'Dead'];
var Greg = ['Dog', 'Alive'];
var Hannah = ['Camel', 'Dead'];
$('button').on('click', function() {
var value = $('#name').val()
console.log(value[0], value[1])
}); // Button
}); // Function
value.join()