Strings 6: Upper and Lower Case

Strings 6: Upper and Lower Case

<script type="text/javascript">
planets = "Mercury, Venus, Earth, Mars, Jupiter";
lower_case_planets = planets.toLowerCase();
alert(lower_case_planets);
upper_case_planets = planets.toUpperCase();
alert(upper_case_planets);
</script>
Comments are closed.