본문 바로가기
Programming/CS 50

[cs50] Day 17

by 그렉그의 2023. 2. 24.
const title = document.querySelector("div.hello:first-child h1");

function animation(){
title.style.color= "blue";
}

function animation2(){
title.innerText="whoala";
}

function handleWindowResize(){
document.body.style.backgroundColor="black";
}

title.addEventListener("click", animation);
title.addEventListener("mouseenter", animation2);
window.addEventListener("resize", handleWindowResize);




CS 50

 
#include <stdio.h>
#include <cs50.h>

int main(void)
{
int numbers[6] = {4, 8, 15, 16, 23, 42};

for (int=0; i<6; i++)
if{
number[i]==50
{
printf("found");
}
printf("not found");
}
}

'Programming > CS 50' 카테고리의 다른 글

[퀵 정렬] 개념 정리  (0) 2023.03.24
[CS 50] 네이버 부스트코스 시작!  (0) 2023.02.20