M Mỹ Duyên New member Sep 19, 2021 #1 What will be the output of the following JavaScript code? Code: var b5 = Boolean('false'); document.getElementById("demo").innerHTML =b5; A. False B. True C. Error D. Undefined
What will be the output of the following JavaScript code? Code: var b5 = Boolean('false'); document.getElementById("demo").innerHTML =b5; A. False B. True C. Error D. Undefined
Nguyễn Văn Toàn New member Sep 19, 2021 #2 Answer: b Explanation: The boolean function returns the boolean values. The boolean function returns true for any non empty string even if the string is false. Upvote 0 Downvote
Answer: b Explanation: The boolean function returns the boolean values. The boolean function returns true for any non empty string even if the string is false.