JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="testApp">
<div ng-controller="TestCtrl">
Variable $scope.name is undefined ==>> {{value1}}
<br/>
Variable $scope.place is undefined ==>> {{value2}}
</div>
</div>
JavaScript
var app = angular.module('testApp',[]);
app.controller('TestCtrl', function($scope){
$scope.name;
$scope.value1 = angular.isUndefined($scope.name);
$scope.place = "chennai";
$scope.value2 = angular.isUndefined($scope.place);
});