Skip to content

Javascript Basics

Objects

let vs var vs const

arrays

spread operator (…)

let arrayCopy = [...array]

code Snippets

Check Enter is pressed or not    onKeyUp($event){
        if($event.keyCode === 13)
        console.log(“Enter is pressed”);
    }
getting value from a input tag on enter event    onKeyUp($event){
        console.log($event.target.value);
    }
Published inUncategorised

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *