How to change textures?

Have -
const texture = loader.load('../assets/img/checker.png');
I want to change the image.

In documentation have .image but it not works
texture.image ='../assets/img/starts.png';

second option also doesn’t work

let sprite = new THREE.TextureLoader().load('../assets/img/starts.png');
let sprite1 = new THREE.TextureLoader().load('../assets/img/checker.png');
const material = new  THREE.PointsMaterial({
     color:0xaaaaaa,
     size:0.7,
     map:sprite
})
material.parameters.map = sprite1;

help me please get access to change the image

You can’t assign a URL to Texture.image. Besides, materials do not have a parameters property. Try it like so:

material.map = sprite1;

Besides, you can reuse a single instance of TextureLoader.