I have the following scenerio
import {p1,p2,p3 as name} from './sample';
This is working fine but I want to change it to
import sample from './sample';
const {p1,p2,p3 as name}=sample;
This is giving error.How to use as in such condition.?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I have the following scenerio
import {p1,p2,p3 as name} from './sample';
This is working fine but I want to change it to
import sample from './sample';
const {p1,p2,p3 as name}=sample;
This is giving error.How to use as in such condition.?