NEW
Font size
WorksheetsJavascript Fundamental Practice
Total questions: 20
Worksheet time: 2hrs 40mins
What is the output of this code?
error arr[3](arr[2].address) is not a function
hello 22 Main st
helloundefined
true
What is the output of this code?
error .join() is not a function
error .split() is not a function
J A J A N G S I P E M B U R U
JAJANGSIPEMBURU
What is the output of this code?
33
2
9
error .sort is not invoked
const str = 'purwadhika jakarta'
How to get string "adhi"?
str.substring(4, 7)
str.slice(4, 7)
str.substr(4, 8)
str.substring(8, 4)
What is the output of this code?
10
false
NaN
10
false
2
true
false
false
true
false
2
What is the output of this code?
-9
"-9"
6
undefined
What is the output of this code?
[4,5,7,8,9,12]
[12,9,8,7,5,4,3]
undefined
[3,4,5,7,8,9,12]
Which data structure maps keys to values?
Linked List
Queue
Stack
None of these answers
What is the output of this code?
What is the output of this code?
error unexpected end of input
tidak lengkap
camry masih baru
data salah
let a = [['deep'],[['deeper'], ['deeper']],[[['deepest'], ['deepest']],[[['deepest-est']]]]]
How to get 'deepest-est'?
console['log'](a[2][1][0][0][0])
console['log'](a[2][1][0][0])
console.log(a[2][0][0][0][0])
console[log](a[2][1][0][0][0])
What is the output of this code?
Purwadhika BSD, purwadhika Jakarta
purwadhika Jakarta, purwadhika Jakarta
undefined, purwadhika Jakarta
Purwadhika Jakarta, Purwadhika BSD.
What is the output of this code?
Gundam { grade: 'Real Grade', size: 144, series: 'Mobile Suit Gundam' }
RX78 { grade: 'Real Grade', size: 144, series: 'Mobile Suit Gundam' }
Error, unexpected identifier
Error, { grade: 'Real Grade', size: undefined, series: 'Mobile Suit Gundam' }
let x = [1, 2, 3];
let y = [1, 2, 3];
console.log(x == y)?
true
false
What are two parts to measuring efficiency?
space and maintainability
time and readability
time and space complexity
speed and maintenance complexity
How to get:
['Jurus Jitu Togel', 'Harry Potter', 'Laskar Pelangi', 'Jurus Jitu Togel', 'Al-Quran', 'Dasar-Dasar Algoritma']
var str = new String("abc")
console.log(typeof str)?
string
function
object
symbol
Consider the following JavaScript statement containing regular expressions and check if the pattern matches.
var text = "testing: 1, 2, 3";
var pattern = /d+/g;
pattern.test(text)
text.check(pattern)
text==pattern
text.equals(pattern)
What is the output of this code?
error
undefined
false
true
What is the name of the technique used in the example code
closure
currying
recursive
refactor
