Theme Customization API does not display field values. How to solve?

Function code:
<?php
function custom($wp_customize){
$wp_customize -> add_section(
"text",
array(
 "title" => "Text"));
$wp_customize->add_setting(
"textt",
array(
 "default" => "",
 "transport" => "postMessage",
 "type" => 'theme_mod'
 ) );

 $wp_customize->add_control(new WP_Customize_Control($wp_customize, "textt", array(
 "label" => "text",
 "section" => "text",
 "settings" => "textt",
)));
};
 add_action( "customize_register", "custom");
 mytheme_customizer_live_preview function()
{
wp_enqueue_script(
 'mytheme-themecustomizer', 
 get_template_directory_uri().'/script.js', // connects the script to the code below
 array( 'jquery','customize-preview' ), 
 ", 
 true 
);
}
add_action( 'customize_preview_init', 'mytheme_customizer_live_preview' );
 ?>

Script code (script.js)

(function ($) {
wp.customize(
 "textt", function (value) {
 val.bind(function (newval) {
$(".text").html(newval);
});
});
})(jQuery);


The text entered in the field is not displayed in the element (.text)
April 7th 20 at 10:42
1 answer
April 7th 20 at 10:44
....value.bind....
wp.customize("textt",function(value){value.bind(function(newval){$(".text").html(newval);});});

Find more questions by tags WordPress