Java script quizz 2014

50 %
50 %
Information about Java script quizz 2014
Technology

Published on March 5, 2014

Author: RmiGoyard

Source: slideshare.net

Description

Just a Little JavaScript Quizz in French

JavaScript Quizz @mimiz33 - 2014

Qu’affiche la console ? function foo() { console.log(x); var x = 10; } foo(); Undefined ...

Qu’affiche la console ? function bar(){ foo(); var foo = function() { console.log(99); }; } bar(); Runtime Error ...

Où est l’erreur ? <ul id="menu"> <li class="rouge">Accueil</li> <li class="rouge">Page 1</li> <li class="menu">Page 2</li> <li class="menu rouge" id="selected page3">Page 3</li> </ul> Deux Id pour le dernier lien ...

Qu’affiche la console ? var a = 5; function first() { a = 6; } function second() { console.log(a); } first(); second(); 6

Que ce passe t’il ? function getFunc() { var a = 7; return function(b) { console.log(a+b); } } var f = getFunc(); f(5); 12

Que ce passe t’il ? function func() { return "truc"; } console.log(func()); Undefined ...

Que ce passe t’il ? var x = 5; var o = { x: 10, doIt: function doIt(){ var x = 20; console.log(this.x); } }; o.doIt(); 10

Que ce passe t’il ? var x = 5; var o = { x: 10, doIt: function doIt(){ var x = 20; setTimeout(function(){ console.log(this.x); }, 10); } }; o.doIt(); 5

Que ce passe t’il ? var a = 5; function() { var a = 7; console.log(a); } 7

Que ce passe t’il ? (function() { var kittySays = "Meow"; })(); console.log(kittySays); Error

Que ce passe t’il ? var x = 15, y = 10; console.log(x++-++y); 4

Que ce passe t’il ? var x = 15, y = 10; console.log(x++-++y+x++); 20

Quelle est la bonne réponse ? (function f(f) { return typeof f(); })(function(){ return 1; }); number "number" "undefined" "function" Error

Quelle est la bonne réponse ? var foo = { bar: function() { return this.baz; }, baz: 1 }; (function(){ return typeof arguments[0](); “undefined" "object" "number" "function" })(foo.bar); “ undefined”

Quelle est la bonne réponse ? function bar() { return foo; foo = 10; function foo() {} var foo = '11'; } console.log(typeof bar()); number function undefined string Error function

Add a comment

Related presentations

Related pages

JavaScript Tutorial - W3Schools

JavaScript to program the behavior of web pages . This tutorial is about JavaScript, ... JavaScript and Java are completely different languages, ...
Read more

JavaScript Quizz - Le Blog de Mimiz

A little JavaScript Quizz, to show some languages subtleties ... A little puzzle you can use with your teams ..
Read more

Testez vos connaissances avec le troisième Quizz ...

Quizz : La manipulation du ... Java Plateforme et langage Java. Java; Java Web; Spring; Android; Eclipse; ... Le 20 octobre 2014, par vermine, Responsable ...
Read more

This Week in JavaScript - 10 February 2014 - JavaScript ...

This Week in JavaScript - 10 February 2014. ... Pullo 2014-02-10 07:50:18 UTC #1. ... Creating a quizz is a very interesting way to promote your book.
Read more

Quiz Maker Script - DHTMLGoodies.com

Free Javascript quiz maker script from DHTMLGoodies.com. ... Tom Edwards JavaScript Quiz Maker software that you have for download is ... 2014/01/24. 1 2 3 4 5
Read more

Javascript Puzzlers or: do you really know JavaScript?

JavaScript Puzzlers! or: do you really know JavaScript? ... ("2014-03-19"), b = new Date(2014, 03, 19); [a.getDay() === b.getDay(), a.getMonth() ...
Read more

Java programs: Quiz program

This is a quiz program in Java. The program allows you to answers up to 10 Java questions.
Read more

Practice Quiz | Online Test - javatpoint

Practice Quiz | Online Test. Javatpoint offers you a online test exams or quizzes to start with. You may play online tests on Java, Servlet, JSP, SQL, OCJP ...
Read more

Fun With JavaScript: A Simple Test / Quiz Script To ...

... but I don’t know how to program in Java. ... I’ve tested this script on Firefox 1.5 and Internet Explorer ... 30 October 2014 at 1:48 am EDT
Read more