InterviewSolution
Saved Bookmarks
| 1. |
Can we preserve the readability of text when font fallback occurs with JavaScript?? |
|
Answer» The some() method checks if an array element satisfies a TEST. An example: <!DOCTYPE html> <html> <body> <script> var val = [20, 28, 45]; function display(a) { return a > 21; } document.write("Are their VALUES greater than 21 in the array = "+val.some(display)); </script> </body> </html>The OUTPUT is true i.e. we have tested the array element and checked a condition: ELEMENTS greater than 21. |
|