HOTSPOT
You are validating user input by using built-in JavaScript functions.
The application must:
Store the value that is entered in a variable named inputValue
Use the built-in isNaN(tnputValue) function to evaluate the data type
You need to validate the return value of the isNaN(inputValue) function.
Which values will be returned? (To answer, configure the appropriate options in the dialog
box in the answer area.)
Explanation:
Is this true as well? In the V3 they say they are all false
All those functions in firefox’s console return ‘false’.
Is correct:
isNaN(“-13”) = false
isNaN(“24.3”) = false
isNaN(“3*8”) = true
isNaN(“‘5′”) = true
OF course they are true if you add the quotes around the values. The question wasn’t about “3*8” but 3*8. The only value with the quotes is the last one, and they are present in the question. The last one returns false as well, according to w3schools http://www.w3schools.com/jsref/jsref_isnan.asp
But then again, reading the question more attentively we see that those values are user inputs, so of text type. I think that you are right, Jose
isNaN(“3*8”) = true
isNaN(“‘5′”) = true
there are false
test like this dont change them to string coz all string true;
isNaN(3*8) = true
isNaN(‘5′) = true
no, values comes from input control – it will be string
ِAll of them False
All of them False
If userInput is taken from , then the answer that’s given is correct
https://jsfiddle.net/wvtjw4su/
form input type text
Just passed 70-480 after 3 times!!! Passed with a score of 900!!!
Around 15%-18% new questions.
Pay close attention to questions on these points:
– about priority when there is multiple event (div inside div and each dive has a click event)
– css priority (div.class or #id wich give color)
– overflow horizontal or vertical
Dumps from this AIO site are not enough for 100% passing. I also learned the premium PL dumps (247Q) here: http://www.passleader.com/70-480.html (recommend!)
P.S.
That PL 247Q dumps now are available on Google Drive for free:
https://drive.google.com/open?id=0B-ob6L_QjGLpfjZFQ2IzbXZXN3QzYzVYVlVfeVU1cmlvV3hFSXFpemdoaUxIelltVTFGS0U
Just FYI! Good Luck!!
All false!
false: -13
false: 24.3
false: 3*8
false: ‘5’
isNaN -> is NOT a number
some examples here
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_isnan
all false!
Try this:
TestIsNaN
var testIsNaN = function() {
alert(document.getElementById(‘test’).value + ‘ is not a number: ‘ + isNaN(document.getElementById(‘test’).value));
}
So the provided answers are correct:
-13: false
24.3: false
3*8: true
‘5’: true
TestIsNaN
var testIsNaN = function() {
alert(document.getElementById(‘test’).value + ‘ is not a number: ‘ + isNaN(document.getElementById(‘test’).value));
}