i have been using javascript for years, but don't know typescript. it is all very…
Jump to turn (11)
- 1i have been using javascript for years, but don't know typescript. it is all ver
- 2great. can i have the next lesson?
- 3continue
- 4great! that worked. I'm feeling better about this. i think i am ready for my nex
- 5thanks, I'm comfortable with this. can you give me something small i can paste i
- 6nice. would you mind rewriting that lesson, but where it uses a function to make
- 7please change createSVGElement to be called createSvgElement, and to accept an a
- 8using the above, can you write a function that creates an svg path? you can pass
- 9beautiful. i feel like i am learning typescript finally. you're really good and
- 10oh you bet i do! can you give me another lesson? feel free to build on the SVG c
- 11you are literally blowing my mind with how much easier you've made this. thank y
- User
i have been using javascript for years, but don't know typescript. it is all very confusing for me. i'd like you to teach me, step by step. i will be working in CodePen. What is the first lesson?
- Assistant
Sure! I'd be happy to help you get started with TypeScript. Here is the first lesson:
Lesson 1: Setting up a TypeScript environment in CodePen
- Go to CodePen.io and create a new pen or open an existing one.
- In the JavaScript settings section, change the JavaScript version to "TypeScript."
- You can start writing TypeScript code in the JavaScript editor just like you would with JavaScript.
- To see the JavaScript equivalent of your TypeScript code, click on the "View Compiled" button.
And that's it! You now have a basic TypeScript environment set up in CodePen. From here, you can start learning the language by writing and testing TypeScript code.
If you have any questions or need clarification, feel free to ask.