인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

인프런 커뮤니티 질문&답변

미미미님의 프로필 이미지
미미미

작성한 질문수

[2025년 출제기준] 웹디자인기능사 실기시험 완벽 가이드

22. 제이쿼리(jQuery) 필수 핵심이론(기본 구문 만들기, 선택자)

jquery err message

작성

·

180

1

Brackets 에서 jquery 실행시 동작은 잘되는데 오류메세지가 21개 발생하는데 이상이 없는 건가요

'$' was used before it was defined.$(function(){1

Expected exactly one space between 'function' and '('.$(function(){1

Expected exactly one space between ')' and '{'.$(function(){1

Missing space between ')' and '{'.$(function(){2

Missing 'use strict' statement.$('.text').css({'display':'none'});2

Missing space between ':' and 'none'.$('.text').css({'display':'none'});3

Expected exactly one space between 'function' and '('.$('.show-btn').click(function(){3

Expected exactly one space between ')' and '{'.$('.show-btn').click(function(){3

Missing space between ')' and '{'.$('.show-btn').click(function(){4

Missing space between ':' and 'block'.$('.text').css({'display':'block'});6

Expected exactly one space between 'function' and '('.$('.hide-btn').click(function(){6

Expected exactly one space between ')' and '{'.$('.hide-btn').click(function(){6

Missing space between ')' and '{'.$('.hide-btn').click(function(){7

Missing space between ':' and 'none'.$('.text').css({'display':'none'});9

Expected ';' and instead saw '(end)'.}) ESLint (6)1

ERROR: '$' is not defined. [no-undef]$(function(){2

ERROR: '$' is not defined. [no-undef]$('.text').css({'display':'none'});3

ERROR: '$' is not defined. [no-undef]$('.show-btn').click(function(){4

ERROR: '$' is not defined. [no-undef]$('.text').css({'display':'block'});6

ERROR: '$' is not defined. [no-undef]$('.hide-btn').click(function(){7

ERROR: '$' is not defined. [no-undef]$('.text').css({'display':'none'});

답변 1

0

문제되는 부분은 아니구요.

아래 강의 들어가시면 자세한 설명이 나와 있습니다.

아래 이미지에서 체크된 강의 보시면 됩니다.

미미미님의 프로필 이미지
미미미

작성한 질문수

질문하기