Created
January 8, 2019 07:46
-
-
Save ArthurTruong5/69e1ba5c605d7cfee57fbdb6359fcca4 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/nujozef
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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