Javascript String Method
Javascript String Method
</script>
Output :-
String Length :- 13
</script>
Output :-
String Lower to Uppercase :- RED AND WHITE
Output :-
String Upper to Lowerrcase :- red and white
Output :-
Joint String :- hello javascript
</script>
Output :-
Remove whitespace :- hello red and white
String Slice
<script type="text/javascript">
</script>
Output :-
Slice string :- laptop
<script type="text/javascript">
</script>
Output :-
Slice string :- t.v, freez, washing machine
String Replace
<script type="text/javascript">
</script>
Output :-
String replace :- orange and White
<script type="text/javascript">
</script>
Output:-
String replace :- Red and White Red white is best institute
charAt() method
<script type="text/javascript">
document.write("Ans :- "+value);
</script>
Output :-
Ans :- d
charCodeAt method
<script type="text/javascript">
document.write("Ans :- "+value);
</script>
Output :-
Ans :- 100
<script type="text/javascript">
document.write("Ans :- "+value);
</script>
Output :-
Ans :- 2
Search() method
script type="text/javascript">
document.write("Ans :- "+value);
</script>
Output :-
Ans :- 4
substring() method
<script type="text/javascript">
document.write("Ans :- "+value);
</script>
Output :-
Ans :- White
split() method
<script type="text/javascript">
console.log(value);
</script>
Output :-
Ans :- ['Red', 'and', 'White']