Skip to content

Instantly share code, notes, and snippets.

@buttersnipps
Last active March 15, 2018 04:13
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 buttersnipps/be6961429e8091b8e4af6c78a3d981a0 to your computer and use it in GitHub Desktop.
Save buttersnipps/be6961429e8091b8e4af6c78a3d981a0 to your computer and use it in GitHub Desktop.
var x = [1,2,3,4,5];
//reverse the array
var reverse = x.reverse();
//Test 1
assert.sameValue(reverse, x, "value is not equal");
//Test 2
assert.sameValue(typeof reverse, typeof x, "type not equal");
//Test 3
assert.sameValue(x[2], 3, "msg for value not equal");
//test 4
assert(x[3] !== 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment