This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function foo(a, b) { | |
return a + b; | |
} | |
function bar(c, d) { | |
return foo(c, d) + c * d; | |
} | |
console.log(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LevelExperienceRampOverrides=(ExperiencePointsForLevel[0]=10,ExperiencePointsForLevel[1]=30,ExperiencePointsForLevel[2]=60,ExperiencePointsForLevel[3]=100,ExperiencePointsForLevel[4]=150,ExperiencePointsForLevel[5]=210,ExperiencePointsForLevel[6]=280,ExperiencePointsForLevel[7]=360,ExperiencePointsForLevel[8]=450,ExperiencePointsForLevel[9]=550,ExperiencePointsForLevel[10]=660,ExperiencePointsForLevel[11]=780,ExperiencePointsForLevel[12]=910,ExperiencePointsForLevel[13]=1050,ExperiencePointsForLevel[14]=1200,ExperiencePointsForLevel[15]=1360,ExperiencePointsForLevel[16]=1530,ExperiencePointsForLevel[17]=1710,ExperiencePointsForLevel[18]=1900,ExperiencePointsForLevel[19]=2100,ExperiencePointsForLevel[20]=2310,ExperiencePointsForLevel[21]=2530,ExperiencePointsForLevel[22]=2760,ExperiencePointsForLevel[23]=3000,ExperiencePointsForLevel[24]=3250,ExperiencePointsForLevel[25]=3510,ExperiencePointsForLevel[26]=3780,ExperiencePointsForLevel[27]=4060,ExperiencePointsForLevel[28]=4350,ExperiencePointsForLevel[29]=4650, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const [{ data, isLoading, isError }] = useFetchData("http://localhost:3004/", { | |
status: "not-started" | |
}); | |
const [status, setStatus] = useState<string>(data.status); | |
const intervalRef = useRef<number>(0); | |
const fetchData = async () => { | |
const result = await axios("http://localhost:3004/"); | |
setStatus(result.data.status); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |