Friday , September 20 2024

The string “12” has been written into the str variable: (let str = “12”;). Then the operation str = +str is performed. As a result, the variable str will contain:

Questions BankCategory: JavaScript Essentials 1The string “12” has been written into the str variable: (let str = “12”;). Then the operation str = +str is performed. As a result, the variable str will contain:
The string “12” has been written into the str variable: (let str = “12”;). Then the operation str = +str is performed. As a result, the variable str will contain:

  • “+12”
  • 12
  • “12”
  • NaN

More Questions: JavaScript Essentials 1 – JSE1: Module 3 Test