Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. var buf1 = new Buffer('Rahul'); Buffer contains Rahul
  2. var buf2 = new Buffer('Kumar'); Buffer contains Kumar
  3. var buf3 = new Buffer('Rahul'); Buffer contains Rahul
  4.  
  5. r1= buf1.compare(buf2);
  6. r2= buf1.compare(buf3);
  7. r3= buf2.compare(buf3);
  8.  
  9. console.log(r1+ " " + r2 + " " + r3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement