JavaScript, but make it bussin'. Write code that slaps with GenZ slang keywords.
yap("no cap, this is fr fr")
Made with ๐ by @Sohmmdev
Start cooking with GenZLang. No cap.
$ Hit "Run" and let it cook.
Everything you need to know to start vibing with GenZLang
yapconsole.logfrconstrnletpovifsikeelselowkeyelse ifspamwhilebetreturncookfunctiondropnewno_captruecapfalsenpcnullidkundefinedstealimportplugexportmaindefaultviafromWhen: "is not defined"L Bruh. '{var}' is not defined. Who is that?
When: "cannot access before initialization"Hold up, you can't use '{var}' before it spawns.
When: "is not a function"Bro, '{var}' is not a function. Stop trying to make it cook.
When: "Assignment to constant variable"You said variable was fr. You can't switch up now!
When: "Cannot read properties"Bruh, you're trying to read properties of an NPC (null/undefined).
When: "is not iterable"You can't spam through '{var}'. It's not a list.
When: "Unexpected token"Vibe check failed. Unexpected token: '{token}'
When: "Unexpected identifier"Who invited '{token}'? Unexpected identifier.
When: "Function statements require a function name"Yo, it needs a name to cook.
When: "Unexpected end of input"Bro left me on read. Unexpected end of input.
When: "Unexpected string"Yo, this string shouldn't be here. Delete it.
When: "Maximum call stack size exceeded"You cooked too hard and burned the kitchen.
When: "Invalid array length"That array size is sus. (Invalid array length)
GenZLang:
cook sayHello(name) {
fr greeting = "Yo, "
yap(greeting + name)
bet no_cap
}JavaScript:
function sayHello(name) {
const greeting = "Yo, "
console.log(greeting + name)
return true
}