1. <script>
    2. var arr=[1,2,3];
    3. // if(Array.isArray(arr)){}
    4. if(arr instanceof Array){
    5. console.log(arr)
    6. }
    7. </script>