print 'Hello YKazu'

('Python', 'Javascript')

Node.jsのグローバルオブジェクト

Global Objects Node.js v6.2.0 Manual & Documentation

グローバルオブジェクトは、少なくとも、モジュールスコープに属する。

// ディレクトリ名
// 実行中スクリプトを含むディレクトリの絶対パス表記
console.log(__dirname) //=> /var/www/nodeapp

// ファイル名
// 実行中スクリプトの絶対パス表記
console.log(__filename) //=> /var/www/nodeapp/app.js