Tampa Devs Quiz Challenge
Created by: @haridira
Let's see how fast you are in solving these coding questions!
👁 Public
Tagged as: Quickz!, Computer Programming
History:
- Last updated 2 years ago
- Created 2 years ago
Played 2 times
Practiced 14 times
Host Practicethanks for using quickz!
In JavaScript, what would be the result of the following statement: 1 + 3 + " dozen of eggs"?
JavaScript is a *loosely* typed language. You can get away with mixing different types and JavaScript can handle the conversion for you. In this case, the numbers are indeed summed first. However, they are automatically converted into a string when added to the string value following them, and the eventual result is a strong.
In an HTML document, it is best practice to always place script tag:
It is always best practice to place the script in the end of the body section to ensure that the HTML elements have been loaded before adding functionality to them.
What is the expected outcome of the following statement in JavaScript: Symbol('square') === Symbol('square')?
A symbol is different from a string value in that it is a unique identifier; every symbol returned by Symbol() is unique.
Inside which HTML element do we put the JavaScript?
In JavaScript, what would be the result of the following statement : console.log(typeof"x")?
This is the same as asking by typing typeof("x") but JavaScript won't be upset by omitting the parenthesis in this case. And obviously the result would be 'string' we're asking about the type of a... wait for it... a string.