- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask17.html
More file actions
Latest commit
17 lines (16 loc) · 499 Bytes
/
Copy pathTask17.html
File metadata and controls
17 lines (16 loc) · 499 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<body>
<scriptlang="JavaScript">
<!--
varmyVariable="Today is Monday"
varmyVariableTwo=myVariable.replace("Monday","Sunday");
document.writeln(myVariableTwo);
// -->
</script>
</body>
<!--
I hearby take responsibility of replacing all the Mondays by Sundays.
:P
Replacing substring
Note: - replace () take two argument . first argument is the keyword to be replaced
it assumes that first keyword is present in the substring. second keyword is the replacement substring
-->