Discuss Scratch
- Discussion Forums
- » Things I'm Making and Creating
- » NewType, a new and easy programming language
- Sheep_maker
- Scratcher
1000+ posts
NewType, a new and easy programming language
In many programming languages (including Scratch, though it's not as apparent), values have different types, such as strings or numbers. However, certain operations can only be done on certain types. For example, Can someone tell to me what types mean? I heard that TS is better than JS because it has types.
value.startsWith('happy')
TypeScript allows you to make sure you do not accidentally set `value` to anything but a string. For example, we could make the above snippet into a function in TypeScript:
function startsHappily (value: string): boolean { return value.startsWith('happy') }
TypeScript can give you more confidence in knowing that your code won't suddenly break due to a little uncaught TypeError. JavaScript is very quirky, which means TypeScript can't protect you from everything, but in most cases it's reassuring enough
- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
con: it is hard let’s stick to JS cuz I know it.That would be perfect for NT!it means that there are different types of TS like a graphical or a console typeAnswer this Can someone tell to me what types mean? I heard that TS is better than JS because it has types.
We just have to use webGL, and maybe three.js
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
Hey guys, I changed my repl username to my scratch username
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- Techno274721
- Scratcher
43 posts
NewType, a new and easy programming language
It doesn't show that u invited me make a post and ping me
this is a signiture make sure to click on my pfp
- Techno274721
- Scratcher
43 posts
NewType, a new and easy programming language
On repl
this is a signiture make sure to click on my pfp
- mybearworld
- Scratcher
1000+ posts
NewType, a new and easy programming language
Wish I could help
Signatures are the only place where assets links still work.
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
Wut On repl
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
Sorry ur invited On repl
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
Also please help and work on the projects
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
three.js is for 3d things right? and also i'm using python for the compiler or intrepeter because well…..con: it is hard let’s stick to JS cuz I know it.That would be perfect for NT!it means that there are different types of TS like a graphical or a console typeAnswer this Can someone tell to me what types mean? I heard that TS is better than JS because it has types.
We just have to use webGL, and maybe three.js
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
We can add 3D to our language, right?three.js is for 3d things right? and also i'm using python for the compiler or intrepeter because well…..con: it is hard let’s stick to JS cuz I know it.That would be perfect for NT!it means that there are different types of TS like a graphical or a console typeAnswer this Can someone tell to me what types mean? I heard that TS is better than JS because it has types.
We just have to use webGL, and maybe three.js
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
anyone tell me what does this error mean? IndentationError: unindent does not match any outer level
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
No! What do you think i am, a mathematician? We can add 3D to our language, right?
But i suppose we could make a package?
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
i tried to fix it anyone tell me what does this error mean? IndentationError: unindent does not match any outer level
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
I can use webGL thenNo! What do you think i am, a mathematician? We can add 3D to our language, right?
But i suppose we could make a package?
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
ok
new repl.it username: Chewyblockguy
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
i gave the website tab icons!
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
someone just change the settings too look more to the color?
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
anyone tell me what does this error mean? IndentationError: unindent does not match any outer level