0% found this document useful (0 votes)
9 views1 page

JavaScript - Implicit Type Coercion - Practice Problems

The document presents a set of practice problems related to implicit type coercion in JavaScript. It includes ten questions that require the reader to predict the output of various console.log statements without executing the code. Additionally, it provides a link to an implicit coercion table and a Codepen URL for reference.

Uploaded by

Alexa Scarleth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

JavaScript - Implicit Type Coercion - Practice Problems

The document presents a set of practice problems related to implicit type coercion in JavaScript. It includes ten questions that require the reader to predict the output of various console.log statements without executing the code. Additionally, it provides a link to an implicit coercion table and a Codepen URL for reference.

Uploaded by

Alexa Scarleth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Resources

JavaScript – Implicit Type Coercison


Practice Problems

Answer the following questions WITHOUT executing the code in Codepen.


Also, explain why do you think your answer is correct.

Q1. What will be printed in the console?

1. console.log(true + false)
2. console.log(12 / "6")
3. console.log("number" + 15 + 3)
4. console.log(15 + 3 + "number")
5. console.log(1 > null)
6. console.log("foo" + + "bar")
7. console.log('true' == true)
8. console.log(false == 'false')
9. console.log(null == '')
10. console.log(!!"false" == !!"true")

Implicit Coercion Table: https://dorey.github.io/JavaScript-Equality-Table/

Codepen URL: https://codepen.io/qaifikhan/pen/KEmYrr

My Twitter Handle: @qaifikhan

All the Best!

EdYoda Digital University https://www.edyoda.com


Page | 1

You might also like