Csrf token is undefined when tried frappe.csrf_token in console

when I am trying to get csrf token in console getting undefined

why is this happening, I made a html file in www folder of an app and I am unable to get csrf_token so I am unable to use frappe.call() inorder to call a whitelist method