three dots meaning javascript code example
Example 1: three dots in javascript
let team = {
lead: "Bob",
num2: "Rob",
num3: "Dog",
}
{lead: "Bob", num2: "Rob", num3: "Dog"}
let students = {
num1: "Andy",
num4: "Ben",
...team
}
{num1: "Andy", num4: "Ben", lead: "Bob", num2: "Rob", num3: "Dog"}
Example 2: make dots in three js
var dotGeometry = new THREE.Geometry();
dotGeometry.vertices.push(new THREE.Vector3( 0, 0, 0));
var dotMaterial = new THREE.PointsMaterial( { size: 1, sizeAttenuation: false } );
var dot = new THREE.Points( dotGeometry, dotMaterial );
scene.add( dot );