A
Q. What will be the output of the following JavaScript code?
Code:
<script>
let x = "Hello, IncludeHelp!";
document.getElementById("test").innerHTML = x.slice(-13,-1);
</script>
let x = "Hello, IncludeHelp!";
document.getElementById("test").innerHTML = x.slice(-13,-1);
</script>
- Correct Answer - Option(B)
- Views: 31
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.