Skip to content

Commit

Permalink
Menambah type text encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
rohmanhm authored Dec 6, 2016
1 parent aa48a41 commit a018579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asinkron_io_&_event/javascript_&_nodejs.html
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ <h1 id="javascript--nodejs">Javascript &amp; Node.js</h1>
<p>Kembali ke Javascript!. Untuk mengetahui apa yang dimaksud dengan pemrograman asinkron bisa lebih mudah dengan memakai pendekatan contoh kode. Perhatikan kode Javascript pada Node.js berikut</p>
<pre><code>var fs = require(&apos;fs&apos;);

fs.readFile(&apos;./resource.json&apos;,function(err, data){
fs.readFile(&apos;./resource.json&apos;, &apos;utf-8&apos;,function(err, data){
if(err) throw err;
console.log(JSON.parse(data));
});
Expand Down

0 comments on commit a018579

Please sign in to comment.