[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"me":3,"catalog:en:backend\u002Fnodejs-modules-streams":4,"config":252},null,{"field_key":5,"field_name":6,"seniority":7,"topic_key":8,"topic_name":9,"spec_key":7,"spec_name":7,"locale":10,"cell_total":11,"field_total":12,"seniorities":13,"topics":17,"specs":148,"samples":168},"backend","Backend","","nodejs-modules-streams","Nodejs Modules Streams","en",75,3300,[14,15,16],"junior","mid","senior",[18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96,99,100,103,106,109,112,115,118,121,124,127,130,133,136,139,142,145],{"key":19,"name":20,"count":11},"api-design","API Design",{"key":22,"name":23,"count":11},"caching","Caching",{"key":25,"name":26,"count":11},"concurrency","Concurrency",{"key":28,"name":29,"count":11},"csharp-concurrency-async","Csharp Concurrency Async",{"key":31,"name":32,"count":11},"csharp-exceptions","Csharp Exceptions",{"key":34,"name":35,"count":11},"csharp-generics-interfaces","Csharp Generics Interfaces",{"key":37,"name":38,"count":11},"csharp-memory-performance","Csharp Memory Performance",{"key":40,"name":41,"count":11},"csharp-stdlib-http","Csharp Stdlib Http",{"key":43,"name":44,"count":11},"csharp-testing-tooling","Csharp Testing Tooling",{"key":46,"name":47,"count":11},"databases-sql","Databases \u002F SQL",{"key":49,"name":50,"count":11},"go-concurrency","Go Concurrency",{"key":52,"name":53,"count":11},"go-errors","Go Errors",{"key":55,"name":56,"count":11},"go-interfaces-generics","Go Interfaces Generics",{"key":58,"name":59,"count":11},"go-memory-performance","Go Memory Performance",{"key":61,"name":62,"count":11},"go-stdlib-http","Go Stdlib Http",{"key":64,"name":65,"count":11},"go-testing-tooling","Go Testing Tooling",{"key":67,"name":68,"count":11},"java-concurrency","Java Concurrency",{"key":70,"name":71,"count":11},"java-exceptions","Java Exceptions",{"key":73,"name":74,"count":11},"java-generics-interfaces","Java Generics Interfaces",{"key":76,"name":77,"count":11},"java-memory-jvm","Java Memory Jvm",{"key":79,"name":80,"count":11},"java-stdlib-http","Java Stdlib Http",{"key":82,"name":83,"count":11},"java-testing-tooling","Java Testing Tooling",{"key":85,"name":86,"count":11},"messaging-queues","Messaging \u002F Queues",{"key":88,"name":89,"count":11},"networking-http","Networking \u002F HTTP",{"key":91,"name":92,"count":11},"nodejs-error-handling","Nodejs Error Handling",{"key":94,"name":95,"count":11},"nodejs-event-loop-async","Nodejs Event Loop Async",{"key":97,"name":98,"count":11},"nodejs-memory-performance","Nodejs Memory Performance",{"key":8,"name":9,"count":11},{"key":101,"name":102,"count":11},"nodejs-stdlib-http","Nodejs Stdlib Http",{"key":104,"name":105,"count":11},"nodejs-testing-tooling","Nodejs Testing Tooling",{"key":107,"name":108,"count":11},"php-concurrency-async","Php Concurrency Async",{"key":110,"name":111,"count":11},"php-exceptions","Php Exceptions",{"key":113,"name":114,"count":11},"php-generics-interfaces","Php Generics Interfaces",{"key":116,"name":117,"count":11},"php-memory-performance","Php Memory Performance",{"key":119,"name":120,"count":11},"php-stdlib-http","Php Stdlib Http",{"key":122,"name":123,"count":11},"php-testing-tooling","Php Testing Tooling",{"key":125,"name":126,"count":11},"python-concurrency-async","Python Concurrency Async",{"key":128,"name":129,"count":11},"python-errors-context","Python Errors Context",{"key":131,"name":132,"count":11},"python-memory-performance","Python Memory Performance",{"key":134,"name":135,"count":11},"python-stdlib-http","Python Stdlib Http",{"key":137,"name":138,"count":11},"python-testing-tooling","Python Testing Tooling",{"key":140,"name":141,"count":11},"python-typing-oop","Python Typing Oop",{"key":143,"name":144,"count":11},"security","Security",{"key":146,"name":147,"count":11},"testing","Testing",[149,153,156,159,162,165],{"key":150,"name":151,"count":152},"csharp","C#\u002F.NET",450,{"key":154,"name":155,"count":152},"go","Go",{"key":157,"name":158,"count":152},"java","Java",{"key":160,"name":161,"count":152},"nodejs","Node.js",{"key":163,"name":164,"count":152},"php","PHP",{"key":166,"name":167,"count":152},"python","Python",[169,187,201,214,227,240],{"id":170,"topic":9,"difficulty":171,"body":172,"options":173,"correct_key":175,"explanation":186},"019f71b0-db83-7e6e-bf4b-f06383b9812e",1,"```javascript\n\u002F\u002F math.js\nmodule.exports = function add(a, b) {\n  return a + b;\n};\n\n\u002F\u002F main.js\nconst add = require('.\u002Fmath');\nconsole.log(add(2, 3));\n```\nWhat does `main.js` print when it runs?",[174,177,180,183],{"key":175,"text":176},"a","5",{"key":178,"text":179},"b","23",{"key":181,"text":182},"c","undefined",{"key":184,"text":185},"d","TypeError: add is not a function","`module.exports` is set to the `add` function itself, so `require('.\u002Fmath')` returns that function directly. Calling `add(2, 3)` computes `2 + 3`, which is `5`.",{"id":188,"topic":9,"difficulty":189,"body":190,"options":191,"correct_key":184,"explanation":200},"019f71b0-db84-7b33-bd17-d1d39dc2d4b0",2,"```javascript\n\u002F\u002F counter.js\nlet count = 0;\nmodule.exports = {\n  increment() {\n    count++;\n    return count;\n  }\n};\n\n\u002F\u002F main.js\nconst counterA = require('.\u002Fcounter');\nconst counterB = require('.\u002Fcounter');\nconsole.log(counterA.increment());\nconsole.log(counterB.increment());\n```\nWhat does this code print?",[192,194,196,198],{"key":175,"text":193},"1, then 1",{"key":178,"text":195},"0, then 1",{"key":181,"text":197},"undefined, then undefined",{"key":184,"text":199},"1, then 2","Node caches modules by resolved file path, so `counterA` and `counterB` reference the exact same object returned by `require('.\u002Fcounter')`. The shared `count` variable persists between calls, so the first `increment()` returns `1` and the second returns `2`.",{"id":202,"topic":9,"difficulty":189,"body":203,"options":204,"correct_key":178,"explanation":213},"019f71b0-db85-7806-8186-eaf2c91e2d49","```javascript\nconst EventEmitter = require('events');\nconst emitter = new EventEmitter();\n\nemitter.on('greet', () => console.log('A'));\nemitter.emit('greet');\nconsole.log('B');\n```\nWhat is printed, in order?",[205,207,209,211],{"key":175,"text":206},"B, then A",{"key":178,"text":208},"A, then B",{"key":181,"text":210},"Only B",{"key":184,"text":212},"Only A","`emit()` calls all registered listeners synchronously before returning. So the listener logging `'A'` runs and finishes before `emit()` returns control to the next line, which logs `'B'`.",{"id":215,"topic":9,"difficulty":189,"body":216,"options":217,"correct_key":181,"explanation":226},"019f71b0-db8b-724c-ae6e-81a3342dc275","```javascript\nconst EventEmitter = require('events');\nconst emitter = new EventEmitter();\n\nemitter.on('tick', () => console.log('first'));\nemitter.on('tick', () => console.log('second'));\nemitter.emit('tick');\n```\nWhat is printed?",[218,220,222,224],{"key":175,"text":219},"second, then first",{"key":178,"text":221},"only second, because the last listener overrides earlier ones",{"key":181,"text":223},"first, then second",{"key":184,"text":225},"the order is not guaranteed and varies between runs","EventEmitter calls listeners for the same event in the order they were registered with `.on()`. Registering a second listener does not overwrite the first one.",{"id":228,"topic":9,"difficulty":189,"body":229,"options":230,"correct_key":175,"explanation":239},"019f71b0-db8b-7a87-9524-20b677da8283","In Node.js streams, what happens as soon as you attach a `'data'` event listener to a Readable stream?",[231,233,235,237],{"key":175,"text":232},"The stream switches to flowing mode and starts emitting chunks automatically.",{"key":178,"text":234},"The stream pauses permanently until `.resume()` is called explicitly.",{"key":181,"text":236},"Nothing changes until `.pipe()` is also called.",{"key":184,"text":238},"The stream reads the entire source into memory before emitting any data.","Attaching a `'data'` listener is one of the ways to switch a Readable stream into flowing mode, in which chunks are pushed to listeners as soon as they're available, without needing to call `.read()` manually.",{"id":241,"topic":9,"difficulty":171,"body":242,"options":243,"correct_key":181,"explanation":251},"019f71b0-db8c-75f6-bc87-ba6f8144b5eb","```javascript\nconst { Writable } = require('stream');\n\nconst writable = new Writable({\n  write(chunk, encoding, callback) {\n    console.log(chunk.toString());\n    callback();\n  }\n});\n\nwritable.write('hello');\nwritable.end();\n```\nWhat is printed?",[244,245,247,249],{"key":175,"text":182},{"key":178,"text":246},"[object Object]",{"key":181,"text":248},"hello",{"key":184,"text":250},"Nothing — write() requires a Buffer, not a string","The custom `write()` implementation converts the chunk to a string with `.toString()` and logs it. Writable streams accept string chunks and convert them to Buffers internally by default, so `'hello'` is printed.",{"fields":253,"seniorities":423,"interview_shapes":424,"locales":429,"oauth":431,"question_count":434,"coach_enabled":435,"jd_match_enabled":435},[254,265,285,302,326,339,358,377,397,404,410,417],{"key":5,"name_tr":6,"name_en":6,"sort":171,"specializations":255},[256,259,260,261,262,263,264],{"key":257,"name":258,"field":5},"general","Genel",{"key":154,"name":155,"field":5},{"key":166,"name":167,"field":5},{"key":157,"name":158,"field":5},{"key":150,"name":151,"field":5},{"key":160,"name":161,"field":5},{"key":163,"name":164,"field":5},{"key":266,"name_tr":267,"name_en":267,"sort":189,"specializations":268},"frontend","Frontend",[269,270,273,276,279,282],{"key":257,"name":258,"field":266},{"key":271,"name":272,"field":266},"javascript","JavaScript",{"key":274,"name":275,"field":266},"typescript","TypeScript",{"key":277,"name":278,"field":266},"react","React",{"key":280,"name":281,"field":266},"vue","Vue",{"key":283,"name":284,"field":266},"angular","Angular",{"key":286,"name_tr":287,"name_en":287,"sort":288,"specializations":289},"fullstack","Fullstack",3,[290,291,292,293,294,295,296,297,298,299,300,301],{"key":257,"name":258,"field":286},{"key":154,"name":155,"field":5},{"key":166,"name":167,"field":5},{"key":157,"name":158,"field":5},{"key":150,"name":151,"field":5},{"key":160,"name":161,"field":5},{"key":163,"name":164,"field":5},{"key":271,"name":272,"field":266},{"key":274,"name":275,"field":266},{"key":277,"name":278,"field":266},{"key":280,"name":281,"field":266},{"key":283,"name":284,"field":266},{"key":303,"name_tr":304,"name_en":304,"sort":305,"specializations":306},"devops-cloud","DevOps \u002F Cloud",4,[307,308,311,314,317,320,323],{"key":257,"name":258,"field":303},{"key":309,"name":310,"field":303},"aws","AWS",{"key":312,"name":313,"field":303},"gcp","GCP",{"key":315,"name":316,"field":303},"azure","Azure",{"key":318,"name":319,"field":303},"kubernetes","Kubernetes",{"key":321,"name":322,"field":303},"terraform","Terraform",{"key":324,"name":325,"field":303},"linux","Linux",{"key":327,"name_tr":328,"name_en":328,"sort":329,"specializations":330},"ai-engineer","AI Engineer",5,[331,332,333,336],{"key":257,"name":258,"field":327},{"key":166,"name":167,"field":327},{"key":334,"name":335,"field":327},"llm-rag","LLM\u002FRAG",{"key":337,"name":338,"field":327},"mlops","MLOps",{"key":340,"name_tr":341,"name_en":342,"sort":343,"specializations":344},"database","Veritabanı","Database",6,[345,346,349,352,355],{"key":257,"name":258,"field":340},{"key":347,"name":348,"field":340},"postgresql","PostgreSQL",{"key":350,"name":351,"field":340},"mysql","MySQL",{"key":353,"name":354,"field":340},"mongodb","MongoDB",{"key":356,"name":357,"field":340},"redis","Redis",{"key":359,"name_tr":360,"name_en":361,"sort":362,"specializations":363},"mobile","Mobil","Mobile",7,[364,365,368,371,374],{"key":257,"name":258,"field":359},{"key":366,"name":367,"field":359},"ios-swift","iOS (Swift)",{"key":369,"name":370,"field":359},"android-kotlin","Android (Kotlin)",{"key":372,"name":373,"field":359},"flutter","Flutter",{"key":375,"name":376,"field":359},"react-native","React Native",{"key":143,"name_tr":378,"name_en":144,"sort":379,"specializations":380},"Güvenlik",8,[381,382,385,388,391,394],{"key":257,"name":258,"field":143},{"key":383,"name":384,"field":143},"appsec","AppSec",{"key":386,"name":387,"field":143},"offensive-pentest","Offensive \u002F Pentest",{"key":389,"name":390,"field":143},"cloud-security","Cloud Security",{"key":392,"name":393,"field":143},"devsecops","DevSecOps",{"key":395,"name":396,"field":143},"blue-team-incident","Blue Team \u002F Incident",{"key":398,"name_tr":399,"name_en":400,"sort":401,"specializations":402},"qa-test-automation","QA \u002F Test Otomasyonu","QA \u002F Test Automation",9,[403],{"key":257,"name":258,"field":398},{"key":405,"name_tr":406,"name_en":406,"sort":407,"specializations":408},"data-engineer","Data Engineer",10,[409],{"key":257,"name":258,"field":405},{"key":411,"name_tr":412,"name_en":413,"sort":414,"specializations":415},"game-dev","Oyun Geliştirme","Game Development",11,[416],{"key":257,"name":258,"field":411},{"key":418,"name_tr":419,"name_en":419,"sort":420,"specializations":421},"ml-engineer","ML Engineer",12,[422],{"key":257,"name":258,"field":418},[14,15,16],{"junior":425,"mid":427,"senior":428},{"questions":426,"median_sec":3},20,{"questions":426,"median_sec":3},{"questions":426,"median_sec":3},[430,10],"tr",[432,433],"google","github",21750,true]