Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
JS exam part 2 - Find the property
/****************************** Find the property ******************************/ function findProperty(input) { //your code here } /* Don't edit the following. It is for validating your code */ var a; while ((a = readline())) { stdin =a.split("#"); stdin[1] = JSON.parse(stdin[1]); print(findProperty(stdin)); } /* Test cases (if run elsewhere): findProperty([3, {jane:1, john:-1, c:-3}]) // should return "c" findProperty([5, {a: 5, bar: -5, c: 0}]) // should return "bar" findProperty([11, {alpha: 11, beta: "-111", omega: -11}]) // should return "omega" */
run
|
edit
|
history
|
help
0
Probability
Alternating Sign Fibonacci
Daddy
My first app
JS exam part 2 - BPM
Remove Duplicates
rotateMatrix
WC
js object to json string
Alternating Sign Fibonacci