OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

JavaScript ignores extra spaces?

  • Thread starter Thread starter Cloudboy22
  • Start date Start date
C

Cloudboy22

Guest
In this JavaScript quiz at WsCube Tech there was a question whether JavaScript ignores extra spaces. The correct answer was “False”.

7. JavaScript ignores extra spaces: ◉ True ✗ — ⭕ False ✓

Isn’t JavaScript white-space independent? I have read in many blogs that it is. So why is my answer wrong?

<p>In this <a href="http://www.wscubetech.com/quiz-test-javascript" rel="nofollow noreferrer">JavaScript quiz at WsCube Tech</a> there was a question whether JavaScript ignores extra spaces. The correct answer was “False”.</p>

<p><a href="https://i.sstatic.net/nGliN.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/nGliN.jpg" alt="7. JavaScript ignores extra spaces: ◉ True ✗ — ⭕ False ✓"></a></p>

<p>Isn’t JavaScript white-space independent? I have read in many blogs that it is. So why is my answer wrong?</p>
 
Top