Kappa

From Esolang
Jump to navigation Jump to search

Kappa, a new working lang in javascript

  1. examples
 // WebSocket Connections
new WebsocketConnection {example.com/api}.then(onConnection += {
 console.log("Connected to" + websocketConnection + "!")
} += )

ifn(WebsocketConnection = "200") {console.log("There was a 200 error responce connecting to" + WebsocketConnection).then(onConnection += {
 onConnection.stop()
} += )
 // Vars
Points = "1"

console.log("You have" + Points + "points")
 // Localhost Website
new InternetConnection {127.0.0.1}.then(onConnection += {
 console.log("Your website is running on" + InternetConnection)
} += )

on("Connection").console.log(connection.address + "connected to" + InternetConnection)

on.new(Error).then(connection += {
 connection.close()
 connection.stop()
 InternetConnection.stop()
} += )