import / export (modules) - Beau teaches JavaScript

preview_player
Показать описание
The import and export statements allow you to break up your code in different files or modules.

⭐JavaScript Tutorials Playlists⭐

-
We're busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community.

Рекомендации по теме
Комментарии
Автор

I wish we had these short 3 minute explanations for programming languages, instead of wasting 20 minutes of some random stuff. This was precise, to the point, and i learned what i needed to know.

BangMaster
Автор

Really this is what you call "to the point" ! Seriously better to watch this type of videos 25x than watching other 25min videos even one times! Honestly!

danish
Автор

import is a ES6 feature, it hasn't been yet implemented in node js. You have to transplile the code. We can use require instead

vigneshravindran
Автор

This is a great video. The code is short and simple to understand, but best of all the video isn't 30 minutes long.

jmido
Автор

A huge thanks and respect for this video. I was confused about import and export and this video is better than 30 min explanation of other videos.... It saved my time

zuhair
Автор

Simply awesome and one of the best and crisp explanation of export and imports

gagangupta
Автор

this method gives me error
SyntaxError: Cannot use import statement outside a module

superdahoho
Автор

Do we have to use Webpack for this? I thought it's an ES6 native feature. But when experimenting with 2 js files. I got syntax error.

vic
Автор

Beau teaches javascript. That's good. What if Bean teaches javascript? That would be epic

henrychoy
Автор

Auto complete feature makes coding faster.

Ellenki_
Автор

syntax error: cannot use import statement outside a module

alfonstabz
Автор

Wouldn't you also have to import sqrt since it is being used in diag?

JimKernix
Автор

This is great and i upvoted you, no idea why anyone would downvote. But a question: what would this look like transpiled? Can you give a sample of a simple component file that has some imports and the `export default` export? Note, I assume that an import means, resolve where the file mentioned is, and in transpiling, copy that code in the outputted file. Thanks.

samuelfullman
Автор

Great tutorial, Thanks. by the way which font are you using ?

happyoe
Автор

how can I export a block of html lines say for example the header html block without node js??

aybakk
Автор

is it already implemented or not in the js engine

bouhannacheabdallah
Автор

How can I export all the content of a .js file in other .js file?

eribertmarquez
Автор

in 3 mins you explained what others explain in 30

georgesmith
Автор

I'm try many times with: "Uncaught SyntaxError: Cannot use import statement outside a module"

erfelipe
Автор

Confusing video.
1. in 1:10 you didn't explained if you had to use the word "lib" or if it was a choice.
2. 1:38 you didn't use the lib.js in the example so we're just seeing random names.

somebodyoncetoldme