Quiz on Cleaner Code
Let’s test our knowledge on cleaning our Transcrypt codebase with the quiz below.
Quiz: Cleaner Code
1
When used with Transcrypt, what is the result of the following block of code?
# __pragma__ ('skip')
React = None
ReactDOM = None
document = None
# __pragma__ ('noskip')
A)
The three lines of code between the comments are skipped over by Transcrypt.
B)
The Python module is ignored by Transcrypt.
C)
The three lines of code between the comments are treated as literal JavaScript and are not transpiled.
D)
The objects, React, ReactDOM , and documents are removed from the namespace.
Question 1 of 30 attempted
Get hands-on with 1400+ tech skills courses.