Skip to content

Instantly share code, notes, and snippets.

View saloni137's full-sized avatar
🎯
Focusing

Saloni Saraiya saloni137

🎯
Focusing
View GitHub Profile
@saloni137
saloni137 / Dog.js
Created December 22, 2022 06:35
Method
class Dog{
bark(){
console.log("dog has barked");
}
}
let dog = new Dog();
dog.bark(); // you cannot call bark with "Dog" class instance
@saloni137
saloni137 / funtion.js
Last active December 22, 2022 06:31
Function
function sum(a,b,c){
return a+b+c;
}
console.log(sum(1,2,3)); //calling sum function from anywhere
@saloni137
saloni137 / schema.prisma
Created September 30, 2022 05:24
Prisma Models
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")