what..?
yk the cursed text kind of makes it impossible to tell what the emotion is other than edgy
yes it still shows up in the sprite counter in show stats
Scince when were âTypescriptâ and âJavascriptâ different?
What are you making?
yes, because itâll always be a sprite until you destroy it
whatâs even the difference???
Itâs not, I just did not have any other programming languages supported by Makecode at the time.
Typescript is type while Javascript is java. Just kidding, typescript is just a more advanced version of javascript (is what I saw in some mysterious topic I found in the depths of the voidâŚ)
even when you destroy it itâs still considered a Sprite.
According to Google since Iâm too lazy to write it all out:
-
Error Detection: TypeScript identifies errors during development via IDEs, reducing runtime bugs in large codebases. JavaScript errors often surface only when the code is executed.
-
Tooling: TypeScript offers superior autocompletion, refactoring, and navigation support due to its type system. JavaScript has more limited built-in tooling.
-
Features: TypeScript supports interfaces, generics, and classes natively, providing a more structured, object-oriented approach. JavaScript is prototype-based and lacks native interface support.
-
Learning Curve: JavaScript has a lower learning curve and is ideal for rapid prototyping or small projects. TypeScript has a steeper learning curve due to type definitions, making it better suited for large-scale, complex applications where maintainability is critical.
I am both a programmer & a mathematician/good math guy.
wait, what???
You had me worried there for a secondâŚ
itâs kinda hard to explain, but doing this in blocks:
set [sprite] to (Sprite ...)
destroy(sprite)
set [sprite] to 1
the last block will through an error, since âtype ânumberâ isnât assignable to type âSpriteâ or whateverâ.
In jsâ
let sprite = sprites.create(...)
sprites.destroy(sprite)
console.log(sprite instanceof Sprite) // true, but "console.log(0 instanceof sprite)" is false
? I get confused lol man you have an IQ too high and your only a grade above me bro must be like quadruple accelerated(Iâm double)
Me when I see someone with a hidden public profile
squisha 2
the mission to break into every profile
