Skip to content

Instantly share code, notes, and snippets.

@sureshalagarsamy
Created July 28, 2021 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sureshalagarsamy/479c7d473a601652976995c960b632d1 to your computer and use it in GitHub Desktop.
Save sureshalagarsamy/479c7d473a601652976995c960b632d1 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/mofuxoj
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="array methods">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
let arr = ["t", "e", "s", "t"];
let newArr = arr.slice(1, 3);
console.log(newArr);
let message = ["s", "u", "r", "e", "s", "h"];
delete message[1];
console.log(message);
</script>
<script id="jsbin-source-javascript" type="text/javascript">let arr = ["t", "e", "s", "t"];
let newArr = arr.slice(1, 3);
console.log(newArr);
let message = ["s", "u", "r", "e", "s", "h"];
delete message[1];
console.log(message);
</script></body>
</html>
let arr = ["t", "e", "s", "t"];
let newArr = arr.slice(1, 3);
console.log(newArr);
let message = ["s", "u", "r", "e", "s", "h"];
delete message[1];
console.log(message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment