Skip to content

Instantly share code, notes, and snippets.

@ArthurTruong5
Created January 8, 2019 07:46
Show Gist options
  • Save ArthurTruong5/69e1ba5c605d7cfee57fbdb6359fcca4 to your computer and use it in GitHub Desktop.
Save ArthurTruong5/69e1ba5c605d7cfee57fbdb6359fcca4 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/nujozef
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
array = [
{
id: "1",
role: "User"
},
{
id: "2",
role : "Provider"
},
{
id: "3",
role: "Administration"
}
]
console.log(array);
// If role: User, change to role: "Disable"
// If role: Provider, change role to "Read Me"
// If role Administration, change role to "Admin"
</script>
<script id="jsbin-source-javascript" type="text/javascript">array = [
{
id: "1",
role: "User"
},
{
id: "2",
role : "Provider"
},
{
id: "3",
role: "Administration"
}
]
console.log(array);
// If role: User, change to role: "Disable"
// If role: Provider, change role to "Read Me"
// If role Administration, change role to "Admin"</script></body>
</html>
array = [
{
id: "1",
role: "User"
},
{
id: "2",
role : "Provider"
},
{
id: "3",
role: "Administration"
}
]
console.log(array);
// If role: User, change to role: "Disable"
// If role: Provider, change role to "Read Me"
// If role Administration, change role to "Admin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment