Dear candidates you will find MCQ questions of JavaScript here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
<script> document.write(Math.round(107.5)) </script>
<script>
try{
const cars = {
company: 'Honda'
};
delete cars.company;
document.write(cars.company);
}
catch (err){
document.write(err.message);
}
</script>
<script>
try{
const cars = {
company: 'Honda'
};
Object.seal(cars);
delete cars.company;
document.write(cars.company);
}
catch (err){
document.write(err.message);
}
</script>
<script>
let x = "10";
let y = + x;
document.write(typeof y);
</script>
<script>
let x = 10;
document.write(typeof x, " , ", typeof String(x));
</script>
<script>
let x = 10;
document.write(x, " , ", toString(x));
</script>
var count = [1,,3];