Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function compareStatus() {
- if(valueTruebutton === statusRandomrapper) {
- alert("Both status are true");
- } else {
- alert("Nah, those status are different");
- }
- }
- var valueTruebutton = document.getElementById("truebutton").value;
- var rapperA = {firstName:"A$AP Rocky", image:"test.jpg", clip:"test.com", status:"true", smallthumbnail: "test.png"};
- <button id="truebutton" onclick="compareStatusTrueButton()" style="background-color: #4BCC92; border: none; font-size: 2em;" value="true">True</button>
- console.log("randomRapper.name:" + randomRapper.firstName + ", randomRapper.status: " + randomRapper.status + " valueTruebutton: " + valueTruebutton + " valueFalsebutton: " + valueFalsebutton )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement