<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.triangle {
width: 0;
height: 0;
border-top: 0px solid transparent;
border-left: 10px solid blue;
border-bottom: 20px solid red;
border-right: 10px solid pink;
}
</style>
</head>
<body>
<div class="triangle"></div>
</body>
<script>
// var arr = [1, 2, 3, 4, 5];
// arr.splice(2, 0, 6)
// // console.log(arr.splice(2, 1, 6));
// console.log(arr);
</script>
</html>