JavaScript Essentials for SAP ABAP Developers: A Guide to Mobile and Desktop Application Development by Rehan Zaidi

JavaScript Essentials for SAP ABAP Developers: A Guide to Mobile and Desktop Application Development by Rehan Zaidi

Author:Rehan Zaidi [Rehan Zaidi]
Language: eng
Format: epub
Publisher: Apress
Published: 2017-06-19T21:00:00+00:00


Listing 5-10. ignoreCase Property Example

<html>

<body>

<script>

var pattern1 = /Java/i;

console.log("IgnoreCase property is set:" + pattern1.ignoreCase);

var pattern2 = /Java/;

console.log("IgnoreCase property is set:" + pattern2.ignoreCase);

</script>

</body>

</html>

This example first declares regular expression pattern pattern1. In this case, the i modifier is specified, making it ignore the case. Next, the example declares pattern2 /Java/ without the ignoreCase modifier. In both cases, the output using the console.log method is generated for the ignoreCase property, as shown in Figure 5-10.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.