0

I have a textbox, which I need to validate against the its value is empty or not.

Should I compare the value with ' ' or " " ?

Alex K
  • 8,269
  • 9
  • 39
  • 57
Prasad Guduri
  • 125
  • 1
  • 10

1 Answers1

2

it won't matter; for example, 'hello' and "hello" represent the same string.

> 'hello' === "hello"
true
dak
  • 91
  • 1
  • 6