#Trying to add a basic plane with a texture
18 messages · Page 1 of 1 (latest)
where do i put that? inside a function?
what function, you have an index.js no?
what are your using to build this project, which tools do you use? a bundler? a server?
sorry, im new to this and its all confusing. I'm on code sandbox.
codesandbox is a very good choice
thanks paul, just so i understand, what is const used for?
because when im creating things, im not sure what to put inside a function, what const is and why i use them
a constant variable, you cant change it no more
and it doesn't have to go inside a function
const a = 1
a = 2 // nope
let a = 1
a = 2 // ok
i think you should go through a javascript crash course before touching three. three is complex. definitively know the difference between const/let before you attempt it 😁
that makes sense:)
also make sure to understand promises and async/await, without this you don't need to start
yeah i probably should, im trying to do this uni project and i dont really understand the basics