deep comparision(eloquent javascript)

In this example below you will see how to do a deep comparision(eloquent javascript) with some HTML / CSS and Javascript

This awesome code was written by 241188, you can see more from this user in the personal repository.
You can find the original code on
Copyright 241188 ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
  <title>deep comparision(eloquent javascript)</title>



    <script  src="js/index.js"></script>



/*Downloaded from */
function deepEqual(arg1,arg2) {
  if(arg1==null && arg2==null) return true;
  else if(arg1==null || arg2==null) return false;
 else if(typeof(arg1)==typeof(arg2)) 
    return arg1===arg2