Understanding import and export statements in JavaScript
Coming from the ReactJS perspective, I'm sure you'd have come across these terms/statements imports and exports in your React codebase (basically, create-react-app) and how they make things work the way they should.
In this article, we're going to se...
seven.hashnode.dev5 min read
Thanks for a good article!
There's a small typo:
import as * salutation from './greetings.js'I'm sure you meant
import * as salutation from './greetings.js'also repeated in:
import as * salutation from './greetings.js' salutation.helloPlanets("Jupiter") // Hey Jupiter, what's popping! salutation.fullName("Jane", "Bullish") // Hey there Jane Bullish, How are you? salutation.hello("people") // Hello people, it is nice meeting you