Q. What will be the output of the following JavaScript code?
Code:
<script>
let cars = ['Honda', 'Hyundai'];
cars.push('Mahindra');
document.write(typeof cars + " " + cars);
</script>
β
Correct Answer: (C)
object Honda,Hyundai,Mahindra