var newID = function () {
return Math.random().toString(36).substr(2, 16);
}
console.log(newID());
오늘날 프론트엔드 개발 환경은 급격히 진화하고 있고, 모던 브라우저들은 이미 충분히 많은 DOM/BOM API들을 구현했습니다. 우리는 jQuery를 DOM 처리나 이벤트를 위해 처음부터 배울 필요가 없습니다. React, Angular, Vue같은 프론트엔드 라이브러리들이 주도권을 차지하는 동안 DOM을 바로 처리하는 것은 안티패턴이 되었고, jQuery의 중요성은 줄어들었습니다. 이 프로젝트는 대부분의 jQuery 메소드의 대안을 IE 10+ 이상을 지원하는 네이티브 구현으로 소개합니다.
Chai is available for both node.js and the browser using any test framework you like. There are also a number of other tools that include Chai.
var jsdom = require('jsdom');
var jquery = require('jquery');
jsdom.env({
src/HelloWorld.js:
function helloWorld() {
return 'Hello World!';
NewerOlder