Add page title as a javacript variable to specific posts

Use a shortcode. In your plugin or theme (functions.php) add:

add_action( 'after_setup_theme', 'wpse_42534_add_permalink_shortcode' );
function wpse_42534_add_permalink_shortcode()
{
    add_shortcode( 'permalink', 'get_permalink' );
}

Now, your users can use the string https://readforlearn.com/add-page-title-as-a-javacript-variable-to-specific-posts/ anywhere in the post to print the URI to the current post or page.

Oh, and welcome to WordPress Stack Exchange!

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)