Skip to content

Instantly share code, notes, and snippets.

@georgefs
Last active December 15, 2015 15:19
Show Gist options
  • Save georgefs/5281163 to your computer and use it in GitHub Desktop.
Save georgefs/5281163 to your computer and use it in GitHub Desktop.
偷js 百迷挑戰賽(http://ithelp.ithome.com.tw/js-ninja/quiz2013)的0.0 自行取用~
{
"10": {
"answer": "JSON",
"opt": [
"BSON",
"JSON",
"SON",
"XML",
"YAML"
],
"question": "{\"name\":\"John\",\"age\":20} 這種表示法在JavaScript中稱之為?"
},
"106": {
"answer": "正在接收回應",
"opt": [
"伺服端回應結束",
"已呼叫open()",
"已呼叫send()",
"正在接收回應",
"還沒呼叫open()"
],
"question": "Ajax傳輸時,會有readyState狀態變化,請問readyState=3代表"
},
"109": {
"answer": "var foo; ",
"opt": [
"delete foo;",
"dim foo;",
"@foo",
"$foo;",
"var foo; "
],
"question": "要在函數裡宣告一個私有變數foo,要怎麼樣宣告才正確?"
},
"111": {
"answer": "use",
"opt": [
"break",
"continue",
"delete",
"new",
"typeof",
"use",
"void"
],
"question": "下面哪一個不是JavaScript的保留關鍵字?"
},
"116": {
"answer": "function invocation pattern",
"opt": [
"apply invocation pattern",
"construction invocation pattern",
"function invocation pattern",
"method invocation pattern"
],
"question": "下列哪一種函式呼叫方式,this會和全域變數結合,而被視為是JavaScript程式設計上的錯誤?"
},
"121": {
"answer": "srcElement",
"opt": [
"Event bubbling",
"Event capture",
"EventTarget ",
"srcElement"
],
"question": "下列哪一個不包括在W3C的事件流程中?"
},
"127": {
"answer": "<script>",
"opt": [
"<code>",
"<??>",
"<language>",
"<pre>",
"<script>",
"<scripting>"
],
"question": "要在HTML使用JavaScript必須使用哪一個標籤"
},
"129": {
"answer": "document.write(\"Hello World\")",
"opt": [
"document.write(\\\"Hello World\\\")",
"echo \\\"Hello World\\\"",
"print \\\"Hello World\\\"",
"puts \\\"Hello World\\\"",
"response.write(\\\"Hello World\\\")"
],
"question": "下面哪一個是JavaScript的Hello World正確寫法?"
},
"131": {
"answer": " if (foo == 'ijs-ninja')",
"opt": [
"f foo = 'ijs-ninja' then",
" if (foo == 'ijs-ninja')",
"if (foo = 'ijs-ninja')",
"if foo == 'ijs-ninja'",
"if foo == 'ijs-ninja' then"
],
"question": "下面哪一個是JavaScript條件式的正確語法?"
},
"136": {
"answer": "for (var i=0; i< total; i++)",
"opt": [
"for (i=0,i>total)",
"for i = 0 to total",
"for (var i=0, i< total, i+)",
"for (var i=0; i< total; i++)"
],
"question": "下面哪一個是屬於JavaScript的迴圈表達示"
},
"145": {
"answer": "Math.ceil(8.5)",
"opt": [
"Math.ceil(8.5)",
"Math.cos(8.5)",
"Math.exp(8.5)",
"Math.floor(8.5)",
"Math.min(8.5)",
"Math.radom(8.5)"
],
"question": "要將8.5進位為整數9,要用哪一個語法?"
},
"148": {
"answer": "location.href = 'http://ithelp.ithome.com.tw'",
"opt": [
"location.hash = 'http://ithelp.ithome.com.tw'",
"location.href = 'http://ithelp.ithome.com.tw'",
"location.port = 'http://ithelp.ithome.com.tw'",
"location.search = 'http://ithelp.ithome.com.tw'",
"location.url = 'http://ithelp.ithome.com.tw'"
],
"question": "下列哪一個語法會幫你成功轉址到iT邦幫忙?"
},
"149": {
"answer": "false",
"opt": [
"false",
"null",
"true",
"undefined"
],
"question": "var num1 = \"9\", num2 = \"10\"; 請問num2 > num1的結果是?"
},
"150": {
"answer": "help",
"opt": [
"help",
"ithe",
"ithelp",
"thel",
"thelp."
],
"question": "var site = \"ithelp.ithome.com.tw\";請問site.substring(2, 6)的結果是?"
},
"154": {
"answer": "”string",
"opt": [
"\\\"array\\\"",
"\\\"date\\\"",
"\\\"number\\\"",
"\\\"object\\\"",
"”string\\\""
],
"question": "請問typeof 'JSDC'的結果是?"
},
"155": {
"answer": "”object”",
"opt": [
"\\\"arguments\\\"",
"\\\"array\\\"",
"null",
"”object”",
"\\\"string\\\"",
"undefined"
],
"question": "(function(){ return typeof arguments;})()的回傳值是"
},
"156": {
"answer": "”function",
"opt": [
"\\\"array\\\"",
"”function\\\"",
"null",
"\\\"object\\\"",
"\\\"string\\\""
],
"question": "a = function(){}; typeof a的結果是?"
},
"161": {
"answer": "obejct",
"opt": [
"\\\"array\\\"",
"\\\"function\\\"",
"null",
"\\\"obejct\\\"",
"\\\"string\\\"",
"undefined"
],
"question": "a = function(){}; b = new a(); typeof b的結果是?"
},
"17": {
"answer": "IE",
"opt": [
"Chrome",
"Firefox",
"IE",
"Safari"
],
"question": "attachEvent是哪一個瀏覽器的註冊事件監聽方法?"
},
"171": {
"answer": "jsdc2013",
"opt": [
"2013",
"jsdc",
"jsdc2013",
"NaN"
],
"question": "var a = 'jsdc', b = 2013; a+b的結果是?"
},
"172": {
"answer": "NaN",
"opt": [
"2013",
"jsdc",
"jsdc2013",
"NaN"
],
"question": "var a = Number('jsdc'), b = 2013; a+b 的結果是?"
},
"176": {
"answer": "5",
"opt": [
"5",
"false",
"null",
"true",
"undefined"
],
"question": "var a = 5; b = function(){ return a}; b()的執行結果是?"
},
"181": {
"answer": "4",
"opt": [
"4",
"5",
"undefined",
"unll"
],
"question": "var a = 5; var b = function(){ var a = 4; return a}; b()的結果是?"
},
"186": {
"answer": "undefined",
"opt": [
"5",
"false",
"null",
"true",
"undefined"
],
"question": "var a = 5; var b = function(){ var a; return a}; b()的執行結果是?"
},
"187": {
"answer": "true",
"opt": [
"false",
"NaN",
"true",
"undefined"
],
"question": "請問 'js-ninja'.length > 7 的比較結果是?"
},
"19": {
"answer": "jQuery",
"opt": [
"Backbone",
"ExtJS",
"jQuery",
"mooTools",
"YUI"
],
"question": "「$」是哪一個JavaScript框架的全域物件縮寫?"
},
"190": {
"answer": "false",
"opt": [
"1",
"false",
"NaN",
"true",
"undefined"
],
"question": "請問 'js-ninja' > 7的結果是?"
},
"193": {
"answer": "jsdc",
"opt": [
"\\\"\\\"",
"foo",
"jsdc",
"null",
"undefined"
],
"question": "function() { if(true) var foo = 'jsdc'; console.log(foo)} 請問foo的值是?"
},
"199": {
"answer": "ithelp",
"opt": [
"bar",
"foo",
"ithelp",
"jsdc",
"null",
"site",
"undefined"
],
"question": "var site = 'jsdc'; function foo() { site = 'ithelp' }; function bar() {console.log(site) }; foo(); bar();結果是?"
},
"208": {
"answer": "string",
"opt": [
"array",
"date",
"number",
"object",
"string"
],
"question": "請問typeof (new Date() + new Date()) 的結果是?"
},
"209": {
"answer": "123",
"opt": [
"123",
"15",
"33",
"5",
"6"
],
"question": "請問'1' + 2 + 3 的結果是?"
},
"211": {
"answer": "51",
"opt": [
"321",
"33",
"51",
"6"
],
"question": "請問 3 + 2 + '1'的結果是?"
},
"213": {
"answer": "int('123')",
"opt": [
"int('123')",
"Number('123')",
"parseFloat('123')",
"parseInt('123')"
],
"question": "在JavaScript中,下列哪一個不能將字串轉成數字?"
},
"215": {
"answer": "為0",
"opt": [
"\\\"\\\"",
"array",
"NaN",
"object",
"為0"
],
"question": "{} + [] 的結果是?"
},
"223": {
"answer": "NaN",
"opt": [
"\\\"\\\"",
"NaN",
"object",
"undefined"
],
"question": "{} + {}的結果是?"
},
"225": {
"answer": "for/in",
"opt": [
"for",
"for/in",
"has",
"loop",
"switch"
],
"question": "想要知道物件裡有哪些屬性,可以用下面哪一種作法?"
},
"233": {
"answer": "false",
"opt": [
"false",
"NaN",
"object",
"true"
],
"question": "foo = new Date(); foo.constructor == Object的結果是?"
},
"235": {
"answer": "將JavaScript的載入儘量放置在頁面底部",
"opt": [
"使用沒有壓縮過的JavaScript程式",
"將JavaScript全部寫在頁面中",
"將JavaScript的載入儘量放置在頁面底部",
"將JavaScript的載入放在Header區塊"
],
"question": "下列哪一個作法,通常有助於前端頁面的效能"
},
"236": {
"answer": "能在伺服器端使用JavaScript開發網站或應用程式",
"opt": [
"JavaScript的自動化任務執行工具",
"一套JavaScript的UI框架",
"可以將JavaScript壓縮以提升效能的工具",
"能在伺服器端使用JavaScript開發網站或應用程式",
"行為驅動開發的JavaScript框架"
],
"question": "請問Node.js是?"
},
"238": {
"answer": "使用JS框架",
"opt": [
"使用eval",
"使用JS框架",
"使用with",
"句尾沒有使用分號",
"大括號的配對錯誤",
"未定義的變數"
],
"question": "哪一個是JSLint不會檢查的項目?"
},
"241": {
"answer": "不要撰寫注釋,以減少程式碼體積",
"opt": [
"上線前將JavaScript壓縮以提升效能",
"不要撰寫注釋,以減少程式碼體積",
"避免使用eval",
"避免使用全域變數",
"開發時使用JSLint之類的工具檢測語法"
],
"question": "下列何者不是開發JavaScript的好作法?"
},
"25": {
"answer": "closure",
"opt": [
"closure",
"Curry",
"Lambda",
"Module"
],
"question": "巢狀函式裡,內部函式可以存取外部函式的變數,這稱之為?"
},
"251": {
"answer": "\" + 1",
"opt": [
"\\\"\\\" + 1",
"(1).toString()",
"new String(1)",
"parseString(1)",
"String(1)"
],
"question": "將數字轉成字串,哪一個效能最好?"
},
"253": {
"answer": "beautify.js",
"opt": [
"beautify.js",
"Jasmine",
"JsTestDriver",
"JsUnit",
"Qunit"
],
"question": "如果想幫JavaScript作測試,哪一個工具沒有幫助?"
},
"262": {
"answer": "jquery-migrate",
"opt": [
"jquery-migrate",
"jquery UI",
"jquery-update",
"jquery-upgrade",
"JSLint",
"Qunit"
],
"question": "為了讓jQuery 1.9之前部份API可以保持相容,可以使用哪個工具?"
},
"265": {
"answer": "jQuery.browser()",
"opt": [
"jQuery.add()",
"jQuery.append()",
"jQuery.browser()",
"jQuery.delay()",
"jQuery.noConflict()"
],
"question": "下列哪個API在jQuery 1.9中已經被移除?"
},
"267": {
"answer": "函數中可使用預設參數",
"opt": [
"Array.isArray",
"Object.create",
"Object.defineProperty",
"Object.keys",
"函數中可使用預設參數",
"增加嚴格模式"
],
"question": "下列哪一個不是ECMAScript 5的特色?"
},
"27": {
"answer": "同源法則",
"opt": [
"匿名法則",
"同源法則",
"安全法則",
"相容性法則"
],
"question": "JavaScript不能直接跨網域存取資料,這稱之為?"
},
"273": {
"answer": "使用eval將JSON字串轉成物件",
"opt": [
"使用eval將JSON字串轉成物件",
"使用JOSN.parse來解析JSON字串",
"使用JOSNP的技術跨網站取得JOSN",
"用$.getJSON來取回JOSN"
],
"question": "下列哪一個行為會為使用JSON帶來風險?"
},
"281": {
"answer": "array.push()",
"opt": [
"array.pop()",
"array.push()",
"array.reverse()",
"array.shift()",
"array.unshift()"
],
"question": "想在陣列後方加入一個元素,可以使用哪一個方法?"
},
"289": {
"answer": "array.shift()",
"opt": [
"array.concat()",
"array.map()",
"array.pop()",
"array.push()",
"array.shift()",
"array.unshift()"
],
"question": "如果想在陣列最前方取出元素,該用哪一個函式?"
},
"29": {
"answer": "Brendan Eich",
"opt": [
"Brendan Eich",
"Douglas Crockford",
"Jeremy Ashkenas",
"John Resig"
],
"question": "創造JavaScript的人是?"
},
"297": {
"answer": "array.join()",
"opt": [
"array.concat()",
"array.join()",
"array.lenght",
"array.pop()",
"array.slice()"
],
"question": "下列哪一個方法可以將陣列轉成字串"
},
"305": {
"answer": "arguments.callee",
"opt": [
"arguments.apply",
"arguments.callee",
"arguments.length",
"arguments.self",
"arguments.super"
],
"question": "下列哪一個能指向正在執行的函式自身?"
},
"307": {
"answer": "Date.getDate()",
"opt": [
"Date.getDate()",
"Date.getDay()",
"Date.getdays()",
"Date.getMonth()",
"Date.week()"
],
"question": "想要知道今天是一個月中的哪一天,要使用哪個函式?"
},
"311": {
"answer": "Date.getFullYear()",
"opt": [
"Date.getFullYear()",
"Date.getLongYear()",
"Date.getTime()",
"Date.getWholeYear()",
"Date.getYear()"
],
"question": "想要取得四位數的年份,要使用哪一個函式?"
},
"313": {
"answer": "Function.length",
"opt": [
"Function.argLength",
"Function.arguments",
"Function.call",
"Function.length",
"Function.size"
],
"question": "想要知道函數定義時的參數數量,可以用哪一種方法?"
},
"316": {
"answer": "arguments.length",
"opt": [
"arguments.length",
"arugments.size",
"function.length",
"Function.size"
],
"question": "想要知道實際傳入陣列中的參數數量,可以用哪一個方法?"
},
"317": {
"answer": "7",
"opt": [
"7",
"0.4",
"6",
"8",
"9",
"隨機數字"
],
"question": "Math.round(7.4)的結果是?"
},
"319": {
"answer": "NaN == NaN結果是相等",
"opt": [
"NaN == NaN結果是相等",
"NaN是全域屬性",
"必須使用 isNaN()才能檢測是否為NaN",
"用delete運算子不能刪除它",
"用for/in無法列舉出NaN屬性"
],
"question": "下面哪一個對NaN的描述是錯誤的?"
},
"321": {
"answer": "hasOwnProperty()",
"opt": [
"hasOwnProperty()",
"hasProerty()",
"isPrototypeOf()",
"propertyIsEmunerable()",
"toLocaleString()",
"valueof()"
],
"question": "要檢查物件自己是否擁有某個屬性,可以用哪一個方法?"
},
"326": {
"answer": "RegExp.search()",
"opt": [
"RegExp.exec()",
"RegExp.search()",
"RegExp.test()",
"RegExp.toString()"
],
"question": "下面哪一個不是RegExp的method ?"
},
"328": {
"answer": "String.new('1234')",
"opt": [
"'1234'",
"new String('1234')",
"String('1234')",
"String.new('1234')"
],
"question": "下列哪一種方式無法建立字串?"
},
"331": {
"answer": "c",
"opt": [
"1",
"2",
"c",
"d",
"j",
"s"
],
"question": "jsdc2013\".charAt(3)執行結果,回傳的是?"
},
"341": {
"answer": "JavaScript的字串可以透過method修改原本的內容",
"opt": [
"JavaScript的字串可以透過method修改原本的內容",
"match()可以找出一個或多個符合模式的結果",
"具有length屬性,可以取得字元數",
"可以透過substr()截取一個子字串",
"是一種基本的資料型態"
],
"question": "下列哪一個對JavaScript的字串描述是錯誤的?"
},
"343": {
"answer": "回傳值是s",
"opt": [
"回傳值是115",
"回傳值是16位元的整數",
"回傳值是s",
"回傳值是字元的Unicode編碼值"
],
"question": "jsdc\".charCodeAt(1)執行結果,何者是錯的?"
},
"349": {
"answer": "””",
"opt": [
"””",
"1",
"2",
"3",
"NaN"
],
"question": "jsdc2013\".charAt(8)的回傳值是?"
},
"355": {
"answer": "NaN",
"opt": [
"\\\"\\\"",
"1",
"3",
"NaN",
"null",
"undefined"
],
"question": "jsdc2013\".charCodeAt(8)的回傳值是?"
},
"356": {
"answer": "'jsdc'",
"opt": [
"'2013'",
"'2013jsdc'",
"'jsdc'",
"'jsdc2013'",
"['jsdc','2013']"
],
"question": "foo = 'jsdc'; bar = foo.concat('2013');請問現在foo的值是?"
},
"361": {
"answer": "-1",
"opt": [
"-1",
"1",
"3",
"4",
"為0"
],
"question": "jsdc2013'.indexOf('2012')的執行結果是?"
},
"364": {
"answer": "回傳值是符合匹配的字串",
"opt": [
"參數使用旗標g將進行全域搜尋",
"回傳值是符合匹配的字串",
"回傳值是陣列",
"如果沒有找到相符的字串,將會回傳null",
"陣列中第一個元素存放的是相符文字"
],
"question": "下列對String.match()的描述哪一個是錯的?"
},
"365": {
"answer": "位於相符字串左側的文字",
"opt": [
"位於相符字串右側的文字",
"位於相符字串左側的文字",
"實字$符號",
"與匹配文字相等的子字串"
],
"question": "jsdc2013\".replace(\"2013\",\"$`\")當中,$`代表的意義是?"
},
"367": {
"answer": "使用旗標g可進行全域搜尋",
"opt": [
"使用旗標g可進行全域搜尋",
"找到相符的字串會回傳開始的位置",
"沒有找到任何相符的字串會回傳-1",
"相符字串位置的計算是從0開始",
"總是回傳第一個相符的字串"
],
"question": "下列哪一個對String.search()的描述是錯誤的?"
},
"369": {
"answer": "JSDC2013\".slice(-4,8)",
"opt": [
"\\\"JSDC2013\\\".slice(4,7)",
"\\\"JSDC2013\\\".slice(-4,8)",
"\\\"JSDC2013\\\".slice(-5,7)",
"\\\"JSDC2013\\\".slice(5,8)"
],
"question": "下列哪一個方法可以得到\"2013”這個字串?"
},
"37": {
"answer": "ECMA-262",
"opt": [
"ECMA-262",
"ECMA-334",
"ECMA-335",
"ECMA-341",
"ECMA-367"
],
"question": "JavaScript所採用的標準規格是?"
},
"371": {
"answer": "[\"js\", \"ninja\"]",
"opt": [
"\\\"js\\\"",
"”js--ninja”",
"”jsninja”",
"[\\\"js\\\", \\\"ninja\\\"]",
"\\\"ninja\\\""
],
"question": "js-ninja\".split(\"-\")的結果是?"
},
"379": {
"answer": "JSDC2013\".substr(4,4)",
"opt": [
"\\\"JSDC2013\\\".substr(0,8)",
"\\\"JSDC2013\\\".substr(4,4)",
"\\\"JSDC2013\\\".substr(5,4)",
"\\\"JSDC2013\\\".substr(-5,8)",
"\\\"JSDC2013\\\".substr(5,8)"
],
"question": "JSDC2013\".substr(-4,4)的結果和下面哪一個是一樣的?"
},
"381": {
"answer": "是client端的JavaScript開發環境",
"opt": [
"使用npm來管理套件",
"使用的核心引擎是V8",
"可以在windows/linux/mac等跨平臺使用",
"是client端的JavaScript開發環境",
"與生具有non blocking的特性"
],
"question": "下列何者對於node.js的描述是錯誤的?"
},
"388": {
"answer": "取消與事件關聯的預設動作",
"opt": [
"停止ajax的作用",
"停止event繼續傳播",
"取消與事件關聯的預設動作",
"攔截預設的錯誤",
"開啟新的頁面"
],
"question": "event.preventDefault() 的作用是?"
},
"391": {
"answer": "取消事件的預設動作",
"opt": [
"停止事件的傳播",
"取消事件的預設動作",
"可以阻止把事件分派到其他結點",
"在事件傳播的任何階段都能呼叫它"
],
"question": "關於event.stopPropagation()的描述,何者是錯的?"
},
"393": {
"answer": "jQuery開發社群",
"opt": [
"HTML5 & CSS3 社群",
"JavaScript.tw 社群",
"jQuery開發社群",
"Node.js 社群"
],
"question": "JSDC的發起開發社群不包含下列哪一個?"
},
"395": {
"answer": "5/18-5/19",
"opt": [
"4/18-4/19",
"4/19-4/20",
"5/18-5/19",
"6/18-6/19"
],
"question": "今年JSDC的舉辦日期是?"
},
"397": {
"answer": "Ryan Dahl",
"opt": [
"Brendan Eich",
"Douglas Crockford",
"John Resig",
"Paul Irish",
"Ryan Dahl"
],
"question": "Node.js的創造者是?"
},
"401": {
"answer": "John Resig",
"opt": [
"Brendan Eich",
"Douglas Crockford",
"Jeremy Ashkenas",
"John Resig",
"Ryan Dahl"
],
"question": "jQuery的創造者是?"
},
"411": {
"answer": "Jeremy Ashkenas",
"opt": [
"Brendan Eich",
"Douglas Crockford",
"Jeremy Ashkenas",
"John Resig",
"Ryan Dahl"
],
"question": "coffee script的創造者是?"
},
"415": {
"answer": "TypeScript",
"opt": [
"Backbone.js",
"CoffeeScript",
"TypeScript",
"Underscore.js "
],
"question": "下列哪個專案不是由Jeremy Ashkenas所開發?"
},
"418": {
"answer": "Douglas Crockford",
"opt": [
"Brendan Eich",
"Douglas Crockford",
"John Resig",
"Ryan Dahl",
"TJ Holowaychuk"
],
"question": "JSON是由誰發想出來的?"
},
"425": {
"answer": "angular.js",
"opt": [
"angular.js",
"express.js",
"jade.js",
"mocha"
],
"question": "下列哪個專案和TJ Holowaychuk沒有關係?"
},
"426": {
"answer": "沒有支援class",
"opt": [
"可直接和既有的JavaScript相容",
"是由微軟所開發",
"是開放原始碼專案",
"沒有支援class",
"需要編譯才能使用"
],
"question": "下面哪一個對TypeScript的描述是錯的?"
},
"431": {
"answer": "jsfiddle.net",
"opt": [
"jsfiddle.net",
"jslint.com",
"json.org",
"npmjs.org"
],
"question": "想在線上展示一段JS運作的結果,哪個網站可以做到?"
},
"442": {
"answer": "檢測JS語法問題與風險,提供較佳的品質",
"opt": [
"JavaScript單元測試框架",
"壓縮程式碼",
"提供JS專案的模組化機制",
"提供視覺化的模組",
"檢測JS語法問題與風險,提供較佳的品質"
],
"question": "JSLint的功能是?"
},
"451": {
"answer": "Jasmine.js",
"opt": [
"AngularJS",
"Backbone",
"ember.js",
"Jasmine.js",
"Javascript MVC",
"Knockout.js"
],
"question": "下列何者與其他專案在性質上不一樣?"
},
"456": {
"answer": "yeoman",
"opt": [
"Jasmine",
"JsUnit",
"Qunit",
"yeoman",
"YUI Test"
],
"question": "下面哪一個專案的性質和其他不同?"
},
"457": {
"answer": "只能在Server端使用",
"opt": [
"使用npm來安裝",
"只能在Server端使用",
"提供良好的套件相依管理",
"由twitter所推出"
],
"question": "下列哪個對Bower的描述不正確?"
},
"46": {
"answer": "1995",
"opt": [
"1995",
"1998",
"1999",
"2000"
],
"question": "JavaScript誕生於哪一年?"
},
"463": {
"answer": "Backbone.js",
"opt": [
"Angular.js",
"Backbone.js",
"Batman.js",
"Ember.js",
"Knockout.js"
],
"question": "下列哪個MVC框架沒有做到UI data binding"
},
"470": {
"answer": "delete foor.bar",
"opt": [
"clear foo.bar",
"delete foor.bar",
"empty foot.bar",
"kill foo.bar",
"remove foo.bar",
"set foo.bar"
],
"question": "要移除foo物件的bar屬性,應該怎麼做?"
},
"471": {
"answer": "宣告變數使用 var i=3",
"opt": [
"使用with語法",
"在eval中引用新變數",
"存取arguments.callee",
"宣告變數使用 i = 3",
"宣告變數使用 var i=3"
],
"question": "下列哪一個語法在使用ECMAScript 5的\"use strict\"不會出錯?"
},
"472": {
"answer": "IE 8",
"opt": [
"Chrome 10",
"Firefox 3.6",
"IE 8",
"Safiri 5.1"
],
"question": "下列哪一個瀏覽器對ECMAScript 5的支援性最差?"
},
"49": {
"answer": "prototype",
"opt": [
"class",
"mix-in ",
"mudule",
"prototype"
],
"question": "JavaScript是透過什麼樣的原生機制來實現繼承?"
},
"50": {
"answer": "{age:20}",
"opt": [
"0xFF",
"200",
"{age:20}",
"false",
"\\\"John\\\"",
"true"
],
"question": "下面哪一個不屬於JavaScript的基本資料型態?"
},
"51": {
"answer": "false",
"opt": [
"error",
"false",
"\\\"NaN\\\"",
"true"
],
"question": "(NaN == NaN)的結果是?"
},
"55": {
"answer": "32",
"opt": [
"1",
"\\\"32\\\"",
"32",
"\\\"5\\\"",
"5"
],
"question": "在JS中,('3' - '2')是1,那麼(\"3\"+\"2\")是多少?"
},
"6": {
"answer": "object",
"opt": [
"\\\"array\\\"",
"\\\"function\\\"",
"\\\"number\\\"",
"\\\"object\\\""
],
"question": "typeof [1,2,3] 的結果是?"
},
"61": {
"answer": "”cool”",
"opt": [
"”cool”",
"\\\"not cool\\\"",
"null",
"undefined"
],
"question": "var foo = true; var bar = (foo) ? \"cool\" : \"not cool\";bar的結果是?"
},
"62": {
"answer": "false",
"opt": [
"false",
"null",
"true",
"undefined"
],
"question": "(1===\"1\")的結果是?"
},
"71": {
"answer": "3",
"opt": [
"1",
"2",
"3",
"4",
"5"
],
"question": "foo = function(){console.log(arguments.length)}; foo(\"bar\",1,[\"100\",\"200\"]);請問結果是?"
},
"8": {
"answer": "true",
"opt": [
"0",
"error",
"false",
"true"
],
"question": "(null == undefined)的結果是?"
},
"81": {
"answer": "foot = {};",
"opt": [
"foo = [];",
"foo = \\\"\\\";",
"foo = function(){};",
"};"
],
"question": "下列何者為JavaScript物件實字的表示法?"
},
"85": {
"answer": "function是第一級的物件",
"opt": [
"function是第一級的物件",
"用Class來建立物件",
"縮進排版具有意義",
"需要編譯成中介碼"
],
"question": "下列哪一個是JavaScript的特色?"
},
"91": {
"answer": "foo = Array.new()",
"opt": [
"foo = [];",
"foo = Array.new()",
"foo = new Array()",
"foo = new Array(10)"
],
"question": "下列哪一個不是JavaScript建立陣例的方法"
},
"92": {
"answer": "2",
"opt": [
"1",
"2",
"3",
"4",
"5"
],
"question": "foo = [1,2,3,4,5],請問 foo[1]是?"
},
"93": {
"answer": "crossdomain.xml",
"opt": [
"crossdomain.xml",
"JSONP",
"用script src",
"用後端程式作proxy機制"
],
"question": "如果JavaScript要做跨站存取資料,下面哪種技術沒辦法辦到?"
},
"97": {
"answer": "Ajax",
"opt": [
"Ajax",
"Closure",
"Curry",
"JSONP",
"Mudule"
],
"question": "JavaScript非同步傳輸的技術通常稱之為?"
},
"99": {
"answer": "原生具備private成員",
"opt": [
"原生具備private成員",
"可同時用點運算子或是索引名稱來存取屬性值",
"可用new關鍵字來新增一個物件",
"組成物件Name/Value的Name必須是字串"
],
"question": "下面哪一個對JavaScript物件特性描述是錯誤的?"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment